/* ======== Modal（新聞彈窗） ======== */
.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}
.modal-bg {
  position: absolute;
  inset: 0;
  background: #0008;
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  max-width: 720px;
  margin: 80px auto;
  background: #fff;
  padding: 28px 30px;
  border-radius: 18px;
  box-shadow: 0 20px 40px #0003;
  animation: pop .25s ease;
}
@keyframes pop {
  from { transform: scale(.9); opacity: 0; }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}
.modal-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #eaf7ee;
  color: #2b7a4b;
  border-radius: 999px;
  border: 1px solid #cfe7d6;
  margin-bottom: 8px;
  font-size: 13px;
}
.modal-content p {
  margin: 10px 0;
  line-height: 1.8;
  color: #3e4d45;
}

/* ======== 全域色彩 ======== */
:root {
  --ink: #1b2b26;
  --muted: #65726a;
  --brand: #2b7a4b;
  --brand-2: #46c08e;
  --paper: #ffffff;
  --soft: #f4f8f2;
  --line: #e6efe8;
  --shadow: 0 10px 30px #00000012;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: #eef5ee;
}
a { color: var(--brand); text-decoration: none; }

/* ======== Header ======== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffdd;
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
nav a {
  margin-left: 18px;
  font-weight: 700;
  color: var(--brand);
}
nav a:hover { opacity: .8; }

/* ======== HERO（滿版輪播） ======== */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background: #ffffff;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 1s ease;
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero .panel {
  pointer-events: auto;
  background: #0007;
  color: #fff;
  padding: 26px;
  border-radius: 16px;
  text-align: center;
  width: min(900px, 92vw);
}
.hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 4.6vw, 54px);
}
.hero p {
  margin: 0 0 14px;
  font-size: clamp(15px, 2vw, 19px);
}
.ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn.primary { background: #2b7a4b; border-color: #2b7a4b; }
.btn.secondary { background: #fff; color: #2b7a4b; }
.btn:hover { filter: brightness(.95); }

/* ======== BG 淡化背景工具 ======== */
.bg-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-url) center/cover no-repeat;
  opacity: var(--bg-opacity);
  filter: var(--bg-filter);
}
.bg-photo > .container {
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 20px;
  background: #fff;
}
/* Hero 要滿版，所以不要上下 padding */
section.hero,
.hero{
  padding: 0;
  height: 100vh;        /* 保持全螢幕高度 */
}

.container {
  max-width: 1180px;
  margin: auto;
}
.title {
  text-align: center;
  margin: 0 0 6px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  color: #24413a;
}
.strap {
  text-align: center;
  margin: 0 0 36px;
  color: #7a6f5f;
}

/* ======== STORY ======== */
.story {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
}
.story p {
  line-height: 1.9;
  color: #36463f;
}
.pic img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* VALUE（四個 icon） */
.values {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 40px;
}
@media (max-width: 680px) {
  .values { grid-template-columns: 1fr; }
}
.val { text-align: center; }
.val .dot {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #2b7a4b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 8px;
}
.val b {
  color: #1f6a44;
  display: block;
  margin-bottom: 5px;
}
.val .txt { color: #54655c; }

/* 核心三球 */
.trio {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.trio .row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .trio .row { grid-template-columns: 1fr; }
}
/* 讓三個欄位的標題+文字都置中 */
.trio .row > div{
  text-align: center;
}

.trio .row p{
  margin-top: 4px;
}

.ball {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #2b7a4b;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

/* ======== OFFERINGS ======== */
#offerings { background: #f5fbf7; }
.grid2 {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card img.thumb {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px 0;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #eaf7ee;
  color: #2b7a4b;
  border: 1px solid #d6eadc;
  margin-bottom: 8px;
}
ul.bullets {
  margin: 10px 0 0 18px;
  padding-left: 0;
  color: #35463d;
  line-height: 1.7;
}

/* ======== NEWS ======== */
#news { background: #f3fbf5; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 860px) {
  .news-grid { grid-template-columns: repeat(3,1fr); }
}
.news-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px #0002;
  transition: .2s;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-3px); }
.news-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf7ee;
  color: #2b7a4b;
  border: 1px solid #d7eadc;
  margin-bottom: 8px;
}
.news-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}
.news-excerpt {
  margin: 0 0 10px;
  color: #47564f;
  line-height: 1.7;
}
.news-more {
  color: #2b7a4b;
  font-weight: 700;
  font-size: 14px;
}

/* ======== ESG ======== */
#esg { background: #f4f8f2; }
.esg-in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 1000px) {
  .esg-in { grid-template-columns: 1fr; }
}
.esg-pic img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ======== CONTACT ======== */
#contact { background: #f4f8f2; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-grid h3 {
  margin: 6px 0;
  color: #e9fff3;
}
.icon { font-size: 30px; }
.center { text-align: center; }
#contact .veil {
  background: #1d3f2eeb;
  padding: 26px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: #e9fff3;
}

/* ======== FOOTER ======== */
.site-footer {
  background: #15251f;
  color: #e9fff3;
  text-align: center;
  padding: 14px 10px;
  font-size: 14px;
}
/* 註：舊版前台左下角有「⚙️ 後台快速連結」按鈕，已移除。
   後台從網址直接進入：admin/admin_console.html */