/*
Theme Name: 祈臻寰宇
Description: 祈臻寰宇官方網站主題 - 共創祥和未來，凝聚愛與關懷。專為佛化禮儀師士平設計的現代簡約主題。
Author: Manus AI
Version: 1.1
License: GPL v2 or later
Text Domain: qizhen-theme
*/

/* 重置和基礎樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 導航樣式 */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2563eb;
  transition: opacity 0.3s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #2563eb;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.main-navigation a:hover {
  color: #2563eb;
}

/* 主要內容區域 */
.site-main {
  margin-top: 80px;
}

/* 英雄區塊 */
.hero-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8)), 
              url('assets/hero_background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 120px 20px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按鈕樣式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2563eb;
  transform: translateY(-2px);
}

/* 區塊樣式 */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 願景卡片 */
.vision-grid,
.practice-grid,
.heritage-grid,
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.vision-card,
.practice-card,
.heritage-card,
.topic-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.vision-card:hover,
.practice-card:hover,
.heritage-card:hover,
.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.vision-icon,
.practice-icon,
.heritage-icon,
.topic-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.vision-card h3,
.practice-card h3,
.heritage-card h3,
.topic-title {
  font-size: 1.3rem;
  color: #2563eb;
  margin-bottom: 15px;
}

.vision-card p,
.practice-card p,
.heritage-card p,
.topic-description {
  color: #666;
  line-height: 1.6;
}

/* 主題卡片特殊樣式 */
.topic-card {
  position: relative;
  overflow: hidden;
  padding: 40px 30px;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.topic-card.buddhist-wisdom {
  border-left: 4px solid #2563eb;
}

.topic-card.ritual-professional {
  border-left: 4px solid #f97316;
}

.topic-card.life-stories {
  border-left: 4px solid #16a34a;
}

.topic-card.education-charity {
  border-left: 4px solid #9333ea;
}

.topic-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.topic-stats span {
  font-size: 0.9rem;
  color: #666;
}

.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: #2563eb;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #1d4ed8;
}

/* 文章卡片 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.article-content {
  padding: 25px;
}

.article-title {
  font-size: 1.3rem;
  color: #2563eb;
  margin-bottom: 12px;
  font-weight: 600;
}

.article-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #999;
}

/* 智慧引言 */
.wisdom-quote {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border-left: 4px solid #2563eb;
  padding: 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #2563eb;
  font-style: italic;
  text-align: center;
  margin: 40px 0;
}

/* 行動實踐 */
.action-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.action-level {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
}

.action-level h3 {
  color: #2563eb;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.action-level ul {
  list-style: none;
  padding: 0;
}

.action-level li {
  padding: 12px 0;
  color: #666;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.6;
}

.action-level li:last-child {
  border-bottom: none;
}

.action-level li::before {
  content: '✓ ';
  color: #2563eb;
  font-weight: bold;
  margin-right: 8px;
}

/* 頁尾 */
.site-footer {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.newsletter-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.newsletter-section h3 {
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 12px 24px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #ea580c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #f97316;
  transform: translateY(-3px);
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-section {
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .vision-grid,
  .practice-grid,
  .heritage-grid,
  .topics-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .action-levels {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .site-logo img {
    width: 30px;
    height: 30px;
  }

  .site-title {
    font-size: 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 20px;
  }
}

/* WordPress 特定樣式 */
.wp-block-group {
  margin: 0;
}

.alignwide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 管理工具列調整 */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
