/* === 共跡尋真簃｜最終版 CSS - 現代化結構 === */
:root {
  --temple-research-ink-dark: #2a241c;
  --temple-research-ink-medium: #5a4a3f;
  --temple-research-ink-light: #8b7355;
  --temple-research-paper: #f8f4e9;
  --temple-research-paper-shadow: #d4c4a6;
  --temple-research-accent: #8b7355;
  --temple-research-rope: #a99272;
  --temple-research-wall-dark: #1a1612;
  --temple-research-wall-light: #2a241c;
  --temple-research-supplement-bg: #fffcf5;
  --temple-research-ink-ripple: rgba(90, 74, 63, 0.2);
}

/* === 頁面容器 === */
.temple-research-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.temple-research-page {
  flex: 1; /* 佔滿剩餘空間 */
  position: relative;
  font-family: iansui;
}

/* === 背景紋理層 === */
.temple-research-wall-depth,
.temple-research-brick-wall,
.temple-research-wall-aging {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

.temple-research-wall-depth {
  background:
    radial-gradient(circle at 20% 30%, rgba(40, 32, 24, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 24, 18, 0.6) 0%, transparent 50%),
    linear-gradient(15deg, transparent 30%, rgba(90, 74, 63, 0.1) 50%, transparent 70%);
}

.temple-research-brick-wall {
  background-image:
    linear-gradient(var(--temple-research-wall-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--temple-research-wall-light) 1px, transparent 1px);
  background-size: 60px 30px;
  opacity: 0.15;
  z-index: -2;
}

.temple-research-wall-aging {
  background:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,0.2) 0%, transparent 5%),
    radial-gradient(circle at 90% 40%, rgba(0,0,0,0.15) 0%, transparent 4%),
    radial-gradient(circle at 40% 80%, rgba(0,0,0,0.1) 0%, transparent 6%);
  z-index: -1;
}

/* === 載入動畫 === */
.temple-research-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--temple-research-wall-dark);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.temple-research-loading-ink {
  width: 40px;
  height: 40px;
  border: 4px solid transparent;
  border-top: 4px solid var(--temple-research-ink-medium);
  border-radius: 50%;
  animation: temple-research-spin 1s linear infinite;
}

@keyframes temple-research-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.temple-research-loading-overlay.temple-research-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* === 卷軸系統 === */
.temple-research-scroll-shadow {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(900px + 100px);
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  filter: blur(5px);
  z-index: 0;
}

.temple-research-scroll-container {
  max-width: 900px;
  margin: -550px auto 60px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}

.temple-research-scroll-container:hover {
  transform: translateY(-5px);
}

.temple-research-scroll {
  background-color: var(--temple-research-paper);
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(212, 196, 166, 0.1) 2%, rgba(212, 196, 166, 0.1) 98%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(139, 115, 85, 0.1) 24px, rgba(139, 115, 85, 0.1) 25px);
  padding: 60px 80px;
  color: var(--temple-research-ink-medium);
  position: relative;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,196,166,0.2), inset 0 0 30px rgba(139,115,85,0.1);
  min-height: 80vh;
}

/* === 卷軸兩端 === */
.temple-research-scroll-end {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, #a99272 0%, #c7b394 30%, #c7b394 70%, #a99272 100%);
  z-index: 2;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 0 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.temple-research-scroll-end-left {
  left: -40px;
  border-radius: 8px 0 0 8px;
  transform: rotateY(10deg);
}

.temple-research-scroll-end-right {
  right: -40px;
  border-radius: 0 8px 8px 0;
  transform: rotateY(-10deg);
}

.temple-research-end-knot {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle at 30% 30%, #c7b394, #8b7355);
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.3);
}

/* === 標題區域 === */
.temple-research-scroll-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--temple-research-paper-shadow);
  position: relative;
}

.temple-research-scroll-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  color: var(--temple-research-ink-dark);
  text-shadow: 2px 2px 0 rgba(212,196,166,0.3);
  display: inline-block;
  margin-bottom: 10px;
}

.temple-research-scroll-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--temple-research-ink-light);
  margin-top: 8px;
  letter-spacing: 0.3em;
  font-style: italic;
  opacity: 0.9;
}

/* === 印章系統 === */
.temple-research-seal-system {
  position: absolute;
  bottom: -15px;
  right: 15%;
  display: flex;
  gap: 15px;
  z-index: 3;
}

.temple-research-seal {
  width: 70px;
  height: 70px;
  border: 2px solid #c7a47a;
  border-radius: 4px;
  position: relative;
  transform: rotate(var(--rot));
  background: rgba(255,253,247,0.9);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: help;
}

.temple-research-seal:hover {
  transform: rotate(0deg) scale(1.1);
  z-index: 10;
}

.temple-research-seal-character {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 2.2rem;
  color: #c7a47a;
  font-weight: bold;
  font-family: 'Noto Serif TC', serif;
}

.temple-research-seal-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--temple-research-ink-dark);
  color: var(--temple-research-paper);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  z-index: 100;
}

.temple-research-seal:hover .temple-research-seal-tooltip {
  opacity: 1;
  visibility: visible;
}

/* === 內容區塊 === */
.temple-research-content-section {
  margin-bottom: 50px;
  animation: temple-research-fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

@keyframes temple-research-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.temple-research-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--temple-research-ink-dark);
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.temple-research-section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--temple-research-accent), transparent);
}

/* === 分類導航 === */
.temple-research-category-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.temple-research-category-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--temple-research-paper-shadow);
  color: var(--temple-research-ink-light);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.temple-research-category-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--temple-research-accent);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.temple-research-category-btn:hover {
  color: var(--temple-research-paper);
  border-color: var(--temple-research-accent);
}

.temple-research-category-btn:hover::before {
  width: 150px;
  height: 150px;
}

.temple-research-category-btn.active {
  background: var(--temple-research-accent);
  color: var(--temple-research-paper);
  border-color: var(--temple-research-accent);
}

/* === 文章清單 === */
.temple-research-articles-container {
  margin-top: 40px;
}

.temple-research-article-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--temple-research-ink-light);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.7;
}

.temple-research-article-item {
  background: rgba(255,253,247,0.95);
  padding: 30px;
  margin-bottom: 25px;
  border-left: 5px solid var(--temple-research-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: temple-research-fadeInUp 0.6s ease-out forwards;
}

.temple-research-article-item:hover {
  transform: translateX(10px);
  box-shadow: -5px 5px 25px rgba(139,115,85,0.2);
}

.temple-research-article-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 95%, rgba(139,115,85,0.05) 100%);
  pointer-events: none;
}

.temple-research-article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.temple-research-article-category {
  font-size: 0.85rem;
  color: var(--temple-research-accent);
  background: rgba(139,115,85,0.1);
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.temple-research-article-date {
  font-size: 0.85rem;
  color: #9b8773;
  font-style: italic;
}

.temple-research-article-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--temple-research-ink-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.temple-research-article-excerpt {
  color: var(--temple-research-ink-medium);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.temple-research-article-down {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(212,196,166,0.4);
}

.temple-research-supplement-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--temple-research-accent);
}

.temple-research-read-more {
  font-size: 0.9rem;
  color: var(--temple-research-ink-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.temple-research-article-item:hover .temple-research-read-more {
  color: var(--temple-research-accent);
}

/* === 參與共建區塊 === */
.temple-research-participation-section {
  background: rgba(212,196,166,0.08);
  padding: 40px;
  margin-top: 50px;
  border-radius: 4px;
  text-align: center;
  border: 1px dashed var(--temple-research-paper-shadow);
}

.temple-research-participation-title {
  font-size: 1.6rem;
  color: var(--temple-research-ink-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.temple-research-participation-text {
  color: var(--temple-research-ink-medium);
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.8;
}

.temple-research-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: var(--temple-research-accent);
  color: var(--temple-research-paper);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-decoration: none;
}

.temple-research-form-btn:hover {
  background: #7d6b5a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139,115,85,0.3);
}

/* === 頁尾引文 === */
.temple-research-scroll-down-content {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--temple-research-paper-shadow);
  text-align: center;
}

.temple-research-down-quote {
  font-size: 1.1rem;
  color: var(--temple-research-ink-light);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  padding: 0 20px;
}

.temple-research-down-quote::before,
.temple-research-down-quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--temple-research-paper-shadow);
  position: absolute;
  top: -10px;
  opacity: 0.5;
}

.temple-research-down-quote::before {
  left: 0;
}

.temple-research-down-quote::after {
  right: 0;
}

/* === 頁碼 === */
.temple-research-page-number {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 0.9rem;
  color: var(--temple-research-ink-light);
  opacity: 0.7;
}


/* === 浮動提示 === */
.temple-research-floating-hint {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--temple-research-ink-dark);
  color: var(--temple-research-paper);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
}

.temple-research-hint-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--temple-research-paper-shadow);
}

.temple-research-hint-content {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === 單篇文章專用樣式 === */
.temple-research-article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.temple-research-back-nav {
  margin-bottom: 40px;
}

.temple-research-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(42, 36, 28, 0.8);
  color: var(--temple-research-paper);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(139, 115, 85, 0.3);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.temple-research-back-btn:hover {
  background: rgba(90, 74, 63, 0.8);
  transform: translateX(-5px);
}

.temple-research-article-card {
  background: var(--temple-research-paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 196, 166, 0.2),
    inset 0 0 30px rgba(139, 115, 85, 0.1);
  margin-bottom: 40px;
  position: relative;
}

.temple-research-card-header {
  padding: 30px 40px;
  background: linear-gradient(135deg, 
    rgba(212, 196, 166, 0.1) 0%,
    rgba(212, 196, 166, 0.05) 100%);
  border-bottom: 1px solid rgba(212, 196, 166, 0.3);
}

.temple-research-category-badge {
  display: inline-block;
  padding: 6px 15px;
  background: var(--temple-research-accent);
  color: var(--temple-research-paper);
  font-size: 0.8rem;
  border-radius: 12px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.temple-research-article-title {
  font-size: 2.2rem;
  color: var(--temple-research-ink-dark);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.temple-research-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--temple-research-ink-light);
  font-size: 0.9rem;
  padding-top: 15px;
  border-top: 1px dashed rgba(212, 196, 166, 0.3);
}

.temple-research-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.temple-research-meta-prefix {
  color: var(--temple-research-ink-medium);
  font-style: italic;
}

.temple-research-card-content {
  padding: 40px;
  color: var(--temple-research-ink-medium);
  position: relative;
  min-height: 400px;
}

.temple-research-paper-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, 
      transparent, 
      transparent 24px, 
      rgba(139, 115, 85, 0.05) 24px, 
      rgba(139, 115, 85, 0.05) 25px);
  pointer-events: none;
  opacity: 0.5;
}

.temple-research-content-body {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  line-height: 1.9;
}

.temple-research-content-body p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.temple-research-content-body h3 {
  font-size: 1.5rem;
  color: var(--temple-research-ink-dark);
  margin: 2em 0 1em;
  padding-left: 15px;
  border-left: 3px solid var(--temple-research-accent);
}

.temple-research-content-body blockquote {
  margin: 2em 0;
  padding: 20px 30px;
  background: rgba(212, 196, 166, 0.1);
  border-left: 4px solid var(--temple-research-accent);
  font-style: italic;
  color: var(--temple-research-ink-dark);
}

.temple-research-reference-section {
  margin-top: 40px;
  padding: 25px;
  background: rgba(212, 196, 166, 0.05);
  border-radius: 4px;
  border: 1px dashed rgba(212, 196, 166, 0.3);
}

.temple-research-reference-title {
  font-size: 1rem;
  color: var(--temple-research-ink-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.temple-research-reference-list {
  list-style: none;
}

.temple-research-reference-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--temple-research-ink-medium);
  padding-left: 20px;
  position: relative;
}

.temple-research-reference-item::before {
  content: '〔';
  position: absolute;
  left: 0;
  color: var(--temple-research-accent);
}

.temple-research-reference-item::after {
  content: '〕';
  color: var(--temple-research-accent);
}

.temple-research-supplements-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--temple-research-paper-shadow);
}

.temple-research-supplements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.temple-research-section-title {
  font-size: 1.6rem;
  color: var(--temple-research-ink-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.temple-research-supplement-count {
  font-size: 0.9rem;
  color: var(--temple-research-ink-light);
  background: rgba(139, 115, 85, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.temple-research-supplement-card {
  background: var(--temple-research-supplement-bg);
  border: 1px solid rgba(212, 196, 166, 0.3);
  border-radius: 4px;
  padding: 25px;
  margin-bottom: 25px;
  position: relative;
}

.temple-research-supplement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--temple-research-accent);
  border-radius: 4px 0 0 4px;
}

.temple-research-supplement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(212, 196, 166, 0.3);
}

.temple-research-supplement-author {
  font-weight: 600;
  color: var(--temple-research-ink-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.temple-research-supplement-date {
  font-size: 0.85rem;
  color: var(--temple-research-ink-light);
  font-style: italic;
}

.temple-research-supplement-content {
  color: var(--temple-research-ink-medium);
  line-height: 1.7;
}

.temple-research-supplement-content p {
  margin-bottom: 1em;
}

.temple-research-add-supplement {
  margin-top: 40px;
  padding: 30px;
  background: rgba(212, 196, 166, 0.05);
  border-radius: 4px;
  border: 2px dashed rgba(212, 196, 166, 0.3);
  text-align: center;
}

.temple-research-add-supplement:hover {
  border-color: var(--temple-research-accent);
  background: rgba(212, 196, 166, 0.1);
}

.temple-research-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: var(--temple-research-accent);
  color: var(--temple-research-paper);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.temple-research-add-btn:hover {
  background: #7d6b5a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.temple-research-article-down {
  margin-top: 60px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 196, 166, 0.3);
  color: var(--temple-research-ink-light);
}

.temple-research-down-note {
  font-size: 0.9rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === 前綴系統 === */
.temple-research-prefix-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(139, 115, 85, 0.1);
  color: var(--temple-research-accent);
  font-size: 0.75rem;
  border-radius: 3px;
  margin-right: 8px;
  font-family: monospace;
}

.temple-research-prefix-system {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
  padding: 15px;
  background: rgba(212, 196, 166, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(212, 196, 166, 0.2);
}

.temple-research-prefix-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--temple-research-ink-medium);
}

/* === 響應式設計 === */
@media (max-width: 1100px) {
  .temple-research-scroll {
    padding: 50px 40px;
  }
  .temple-research-scroll-end {
    display: none;
  }
}

@media (max-width: 768px) {
  .temple-research-scroll-title {
    font-size: 2.5rem;
  }
  .temple-research-seal-system {
    right: 5%;
    bottom: -25px;
  }
  .temple-research-seal {
    width: 50px;
    height: 50px;
  }
  .temple-research-seal-character {
    font-size: 1.5rem;
  }
  .temple-research-nav-indicator {
    display: none;
  }
  .temple-research-article-container {
    padding: 20px 15px 60px;
  }
  .temple-research-card-header,
  .temple-research-card-content {
    padding: 25px 20px;
  }
  .temple-research-article-title {
    font-size: 1.8rem;
  }
  .temple-research-article-meta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .temple-research-scroll {
    padding: 40px 25px;
  }
  .temple-research-scroll-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }
  .temple-research-section-title {
    font-size: 1.5rem;
  }
  .temple-research-article-item {
    padding: 20px;
  }
  .temple-research-article-title {
    font-size: 1.3rem;
  }
}
/* =========================
   Research Single Featured Image (no crop)
   RWD: 1000 / 768 / 480 / 360
   ========================= */

.temple-research-featured {
  margin: 18px 0 10px;
}

.temple-research-featured-frame {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;

  /* 讓圖片像「放在紙面上」但不裁切 */
  background: rgba(255, 249, 214, 0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  padding: 10px; /* 留白讓 contain 圖更好看 */
}

.temple-research-featured-img {
  display: block;
  width: 100%;
  height: auto;          /* ✅ 不裁切的關鍵 */
  max-height: 70vh;      /* ✅ 避免超長圖把首屏吃完 */
  object-fit: contain;   /* ✅ 不裁切的關鍵 */
  border-radius: 14px;
}

.temple-research-featured-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.temple-research-featured-caption-text {
  display: inline;
}

.temple-research-featured-credit {
  display: inline;
  margin-left: 10px;
  opacity: 0.85;
}

/* <= 1000px */
@media (max-width: 1000px) {
  .temple-research-featured {
    margin: 16px 0 10px;
  }
  .temple-research-featured-frame {
    border-radius: 16px;
    padding: 9px;
  }
  .temple-research-featured-img {
    border-radius: 12px;
    max-height: 64vh;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  .temple-research-featured {
    margin: 14px 0 10px;
  }
  .temple-research-featured-frame {
    border-radius: 16px;
    padding: 8px;
  }
  .temple-research-featured-img {
    max-height: 58vh;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  .temple-research-featured {
    margin: 12px 0 8px;
  }
  .temple-research-featured-frame {
    border-radius: 14px;
    padding: 7px;
  }
  .temple-research-featured-img {
    border-radius: 10px;
    max-height: 52vh;
  }
  .temple-research-featured-caption {
    font-size: 0.9rem;
  }
}

/* <= 360px */
@media (max-width: 360px) {
  .temple-research-featured-frame {
    border-radius: 12px;
    padding: 6px;
  }
  .temple-research-featured-img {
    border-radius: 9px;
    max-height: 48vh;
  }
}
