:root {
  --bg-color: #fcfaf7;
  --card-bg: #ffffff;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --accent: #6b5ce7;
  --accent-light: #efedff;
  --border: #e0dcd5;
}

body {
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(#e0dcd5 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0; padding: 40px 20px;
}

.container { max-width: 850px; margin: 0 auto; }

header { text-align: center; margin-bottom: 60px; }
header h1 { font-size: 2.5rem; color: var(--accent); letter-spacing: 2px; }
header p { color: var(--text-secondary); font-style: italic; }

/* 搜尋與控制區 */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex-grow: 1;
  max-width: 400px;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--accent); }

/* 卡片計數器 */
.seed-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 瀑布流/網格動畫 */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.garden-grid.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* 載入更多按鈕 */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

/* 頂級導航標籤 */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  border: none;
  background: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* 最新卡片置頂樣式 */
.latest-section {
  margin-bottom: 60px;
}

.latest-tag {
  background: var(--accent);
  color: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 15px;
  display: inline-block;
}

.hero-seed {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.hero-seed:hover { transform: scale(1.01); }

.hero-visual {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.2);
}

.hero-content { padding: 40px; }

/* 緊湊型卡片樣式 */
.seed-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  height: 100%;
}

.seed-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(107, 92, 231, 0.05);
}

@media (max-width: 768px) {
  .hero-seed { grid-template-columns: 1fr; }
  .hero-visual { height: 150px; font-size: 3rem; }
}

.type-tag {
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  width: fit-content;
  margin-bottom: 15px;
}

.seed-card h3 { margin: 10px 0; font-size: 1.3rem; }
.seed-card .verse-ref { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.seed-card .summary { font-size: 0.9rem; color: var(--text-secondary); margin-top: 10px; flex-grow: 1; }

/* 豐富版排版增強 */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0; /* 改為由內層控制 */
  overflow: hidden;
  border-radius: 12px;
}

.article-header {
  background: var(--accent);
  color: white;
  padding: 60px 40px;
  position: relative;
}

.article-header h1 { color: white; margin: 0; font-size: 3rem; }
.article-header .floating-icon {
  position: absolute;
  right: 40px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.15;
  pointer-events: none;
}

.article-content {
  padding: 60px 40px;
}

.metaphor-box {
  background: #fdf9f3;
  border: 1px dashed #dcdde1;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
}

.metaphor-box h4 { color: #d35400; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.depth-section {
  margin: 40px 0;
}

.depth-section h3 {
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}

/* 現代生命實踐區塊 - 溫暖且具啟發性 */
.life-connection {
  background: #fdfcfe;
  color: var(--text-primary);
  padding: 35px;
  border-radius: 16px;
  margin: 40px 0;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(107, 92, 231, 0.05);
}

.life-connection h4 {
  color: var(--accent);
  margin-top: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.life-connection p { 
  font-size: 1.05rem; 
  line-height: 1.8; 
  color: var(--text-secondary); 
  border-left: 3px solid var(--accent-light);
  padding-left: 20px;
}


.summary-item {
  background: #f8f9fa;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.summary-item strong { color: var(--accent); display: block; margin-bottom: 5px; }

.back-btn {
  display: inline-block;
  margin-bottom: 30px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.back-btn:hover { color: var(--accent); }

.verse-block {
    margin: 30px 0;
    padding: 25px;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.body-text { font-size: 1.15rem; text-align: justify; }

.links-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed var(--border);
}

/* 底部連結區塊標籤樣式 */
.links-box .link-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f2f6;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.links-box .link-pill:hover { 
    border-color: var(--accent); 
    background: var(--accent-light); 
    color: var(--accent);
}

/* 內文中的主題超連結實體 - 僅底線呈現 */
.body-text a.link-tag, 
.life-connection a.link-tag {
  background: none;
    border: none;
    border-bottom: 1.5px solid var(--accent);
    padding: 0 1px;
    border-radius: 0;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
  margin: 0 1px;
}

@media (max-width: 600px) {
    .article-card { padding: 30px; }
}
