/* =========================================
    基本設定與變數
========================================= */
@charset "UTF-8";

/* 全局顏色變數（對應圖片的沉穩綠與文青灰綠/灰藍風格） */
:root {
  --main-bg: #F4F6F5;         /* 頁面背景（柔和的米灰白） */
  --section-bg: #2C5E4A;      /* 區塊背景（對應海報的墨綠色） */
  --main-green: #2C5E4A;      /* 主色調（墨綠色） */
  --text-dark: #ffffff;       /* 主要文字（深墨灰） */
  --text-light: #FFFFFF;      /* 白色文字 */
  --menu-btn-bg: #2C5E4A;     /* MENU 按鈕背景 */
  --menu-btn-hover: #1E3F31;  /* MENU hover 顏色 */
}

/* =========================================
    全局樣式
========================================= */
body {
  background-color: var(--main-bg);
  color: var(--text-dark);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
  
  min-height: 100vh;      /* 讓網頁主體至少跟螢幕一樣高 */
  display: flex;
  flex-direction: column; /* 讓內容由上往下排列 */
  margin: 0;              /* 消除預設的外距 */
}

p, .normal-text {
  color: #4A5552; 
  font-size: 18px;
}

/* =========================================
    導覽列
========================================= */
.navbar {
  background-color: var(--main-green) !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: var(--text-light) !important;
  font-size: 16px;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  color: #d1ded8 !important; /* 微亮效果 */
}

.navbar-toggler {
  background-color: var(--menu-btn-bg) !important;
  border: none;
}

.navbar-toggler:hover {
  background-color: var(--menu-btn-hover) !important;
}

/* 調整 Menu 按鈕字型大小與尺寸 */
.navbar .navbar-toggler {
  font-size: 14px; /* 字型大小 */
  padding: 10px 15px; /* 上下左右內邊距 */
}

/* =========================================
    區塊設定
========================================= */
.page-section {
  background-color: var(--section-bg);
  padding: 60px 0;
}

/* =========================================
    標題與文字樣式
========================================= */
.section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-green);
  text-align: center;
  margin-bottom: 20px;
}

.section-title-white {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 32px;
    text-transform: none;
    color: #fff;
    text-align: center;
}

.artist-name {
  font-size: 28px;
  font-weight: bold;
  color: var(--main-green);
  margin-bottom: 15px;
}

.highlight {
  font-size: 20px;
  font-weight: bold;
  color: var(--main-green);
  display: block;
  margin-top: 15px;
}

/* =========================================
    特定區塊（展出作品 & 茶會照片）
========================================= */
#about3, #about4 {
  background-color: #D3DCDE !important; /* 對應海報右下角的灰藍綠色調 */
  color: #000403 !important;
}

#about3 *{ 
  color: #ffffff !important;
}
#about4 * {
  color: #1E3F31 !important;
}

/* =========================================
    按鈕樣式
========================================= */
.btn-primary {
  background-color: var(--main-green);
  border: none;
}

.btn-primary:hover {
  background-color: #1E3F31;
}

/* =========================================
    Footer 絕對強力修正（確保字體變白）
========================================= */
.footer {
  background-color: #2C5E4A !important;
  padding: 40px 0;
  margin-top: auto;
}

/* 用萬用字元直接強制覆蓋 footer 內所有標題、段落、文字 */
.footer * {
  color: #FFFFFF !important;
}

.copyright {
  background-color: #1E3F31 !important;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
}

.copyright * {
  color: #FFFFFF !important;
  margin: 0;
}

/* =========================================
    圖片網格（Portfolio）
========================================= */
.bob-container {
  margin: 0 auto;
  padding: 0 15px;
}

.bob-row {
  margin: 0 -15px;
  display: flex;
  flex-wrap: wrap;
}

.bob-2item,
.bob-3item,
.bob-4item {
  position: relative;
  padding: 0 15px;
  float: left;
}

.bob-2item { width: 50%; }
.bob-3item { width: 33.33%; }
.bob-4item { width: 25%; }

.bob-2item img,
.bob-3item img,
.bob-4item img {
  width: 100%;
  display: block;
}

/* =========================================
    RWD 設定
========================================= */
@media (min-width: 768px) {
  .bob-container { width: 750px; }
}

@media (min-width: 992px) {
  .bob-container { width: 970px; }
}

@media (min-width: 1200px) {
  .bob-container { width: 1170px; }
}

img, video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;          /* 隨螢幕寬度自動伸縮 */
  max-width: 1200px;   /* 大螢幕時不超過 1200px */
  margin: 0 auto;      /* 置中 */
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
}

.hero-section {
  font-size: 48px;
}

@media (max-width: 768px) {
  .hero-section {
    font-size: 32px;
  }
  
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary {
    width: 100%;
  }
}

body, p, h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.3;
}

body, html {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .your-text-class {
    position: static;
    margin: 10px 0;
  }
}

.curator-text {
  white-space: nowrap;
  display: block;
  margin-top: 20px;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline;
  }
  .main-title {
    font-size: 24px;
    line-height: 1.4;
  }
}
.author-text {
  text-align: center;
}