@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Sans+TC:wght@200;400;600;700;900&family=Lato:wght@300;400;600&display=swap');
/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */ :root {
  --default-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
  --heading-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
  --nav-font: 'Lato', 'Noto Sans TC', "微軟正黑體", 'Microsoft JhengHei', sans-serif;
}
/* Global Colors */ :root {
  --background-color: #fff3bd;
  --default-color: #333333;
  --heading-color: #73a7bc;
  --accent-color: #FFE60E;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  /* 專案色票 */
  --yellow-light: #fff3bd;
  --yellow-mid:   #f8e180;
  --yellow:       #f8b62d;
  --green-light:  #dbeac6;
  --green-mid:    #acc398;
  --green:        #81ab8d;
  --pink-light:   #fbe2e6;
  --pink-mid:     #eda9a9;
  --pink:         #d18b8b;
  --blue-light:   #cfe3f2;
  --blue-mid:     #a3c7dd;
  --blue:         #73a7bc;
  --brown:        #787063;
  --gray-bg:      #f7f8f8;
}
/* Nav Menu Colors */ :root {
  --nav-color: #787063;
  --nav-hover-color: #C1954A;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #787063;
  --nav-dropdown-hover-color: #C1954A;
}
/* Color Presets */
.light-background {
  --background-color: #fff;
  --surface-color: #f8b62d;
}
.dark-background {
  --background-color: #814200;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #9e9e9e;
  --contrast-color: #ffffff;
}
/* Smooth scroll */ :root {
  scroll-behavior: smooth;
}
::selection {
  background: #ff8942;
  color: #fff;
}
::-moz-selection {
  background: #ff8942;
  color: #fff;
}
:root {
  scroll-padding-top: 55px;
}
@media (max-width: 465px) {
  :root {
    scroll-padding-top: 30px;
  }
}
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: #fff3bd;
  font-family: var(--default-font);
  background-image: url("../img/texture.png");
  background-repeat: repeat;
  background-position: center top;
  background-attachment: fixed;
  min-height: 1080px;
}
@media (max-width: 992px) {}
@media (max-width: 576px) {}
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #986810;
  font-family: var(--heading-font);
}
/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #ffffff;
  --default-color: #787063;
  --heading-color: #787063;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
}
.header .logo {
  line-height: 1;
}
.header .logo img {
  height: 45px;
  width: auto;
  margin-right: 8px;
  padding-right: 10px;
}
@media (max-width: 576px) {
  .header .logo img {
    height: 30px !important;
    width: auto !important;
  }
  .header .logo img.logo02 {
    height: 24px !important;
  }
}
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 4700;
  color: var(--heading-color);
}
.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}
/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.60);
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li {
    position: relative;
  }
  .navmenu ul li img {
    max-height: 50px;
    margin-right: 10px;
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    padding: 4px 15px;
    font-size: 20px;
    font-family: var(--nav-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  .navmenu li:last-child a {
    padding-right: 0;
  }
  .navmenu li:hover > a, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu .dropdown ul li {
    min-width: 200px;
  }
  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }
  .navmenu .dropdown ul a i {
    font-size: 15px;
  }
  .navmenu .dropdown ul a:hover, .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }
  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}
/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }
  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    padding: 20px 0;
    margin: 0;
    border-radius: 12px;
    background-color: var(--nav-mobile-background-color);
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    height: auto; /* ✅ 高度依內容而定 */
    overflow: hidden; /* ✅ 避免出現不必要的滾動條 */
  }
  .navmenu ul img {
    margin-right: 16px;
    max-height: 50px;
  }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }
  .navmenu a i:hover, .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }
  .navmenu a:hover, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }
  .navmenu .active i, .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }
  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }
  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }
  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }
  .mobile-nav-active {
    overflow: hidden;
  }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}
/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 10px 0;
  position: relative;
}
.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}
.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}
.footer .social-links {
  margin: 0 0 30px 0;
}
.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}
.footer .social {
  font-size: 13px;
  line-height: 160%;
}
.footer .social a {
  color: var(--contrast-color);
}
.footer .social a:hover {
  text-decoration: none;
  color: var(--accent-color);
}
.footer .copyright {
  padding-top: 10px;
  font-size: 11px;
  line-height: 160%;
}
.footer .copyright a {
  color: var(--contrast-color);
}
.footer .copyright a:hover {
  text-decoration: none;
  color: var(--accent-color);
}
.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--heading-color);
  color: var(--accent-color);
  font-size: 20px;
  width: 60px;
  height: 60px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 50px;
  color: var(--heading-color);
  line-height: 0;
}
.scroll-top:hover {
  /*background-color: color-mix(in srgb, var(--heading-color), transparent 0%);*/
  color: var(--heading-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}
@media (max-width: 576px) {
  .scroll-top {
    right: 20px;
    bottom: 40px;
    width: 50px;
    height: 50px;
  }
}
/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.main {}
.page-title {
  color: var(--default-color);
  padding: 80px 0 0 0;
  text-align: center;
  position: relative;
}
@media (max-width: 768px) {
  .main {}
}
@media (max-width: 576px) {
  .main {}
  .page-title {
    padding: 60px 0 0 0;
  }
}
/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 50px 0;
  scroll-margin-top: 80px;
  overflow: clip;
  max-width: 1120px;
  margin: 60px auto;
  border-radius: 20px;
  box-shadow: 0px 0px 6px 2px #5D4B38;
}
.section p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 1em;
}
.section p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1199px) {
  .section {
    scroll-margin-top: 56px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }
  .section p {
    font-size: 16px;
  }
}
/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 20px;
  position: relative;
  font-size: 56px;
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: 30px;
}
.section-icon {
  max-height: 80px;
  width: auto;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
    letter-spacing: 0;
    padding-bottom: 0px;
  }
  .section-icon {
    max-height: 50px;
    width: auto;
  }
}
/*--------------------------------------------------------------
# kv Section
--------------------------------------------------------------*/
.video {}
@media (max-width: 768px) {
  .video01 {
    padding-bottom: 60px;
  }
  .video {
    padding-bottom: 170px;
  }
}
@media (max-width: 567px) {
  .video01 {
    padding-bottom: 30px;
  }
  .video {
    padding-bottom: 30px;
  }
}
/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
#about .pic {
  float: right;
  max-width: 460px;
}
@media (max-width: 567px) {
  #about .pic {
    float: none;
    width: 100%;
    max-width: 320px;
  }
}
/*--------------------------------------------------------------
# Story Section
--------------------------------------------------------------*/
#story .book {
  text-align: center;
  margin: 0 10px 20px 10px;
}
#story .price {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
}
#story .price02 {
  font-size: 20px;
  font-weight: 600;
}
#story .price-r01 {
  font-size: 32px;
  color: #c60b16;
}
#story h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 4px;
}
#story h3 {
  font-size: 24px;
  font-weight: 400;
  color: #434E8D;
}
#story .btn-buy {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 4px 20px;
  background-color: var(--nav-mobile-background-color);
  color: var(--surface-color);
}
/* 購物按鈕群組 */
.shop-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* 每一列：兩顆並排 */
.shop-row {
  display: flex;
  gap: 12px;
}
/* 單一按鈕樣式（深藍、白字、圓角、外框） */
.shop-btn {
  display: inline-block;
  min-width: 140px; /* 讓寬度一致 */
  padding: 10px 28px;
  text-align: center;
  font-size: 16px;
  background-color: #D63F42;
  color: #fff;
}
.shop-btn:hover, .shop-btn:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff000;
}
@media (max-width: 768px) {
  #story .price {
    font-size: 16px;
    line-height: 1.2;
  }
  #story .price02 {
    font-size: 18px;
    font-weight: 600;
  }
  #story .price-r01 {
    font-size: 27px;
    color: #c60b16;
  }
}
/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}
.portfolio .portfolio-content img {
  transition: 0.3s;
}
.portfolio .portfolio-content .portfolio-info {
  opacity: 1;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
}
.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}
.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.portfolio .portfolio-content .portfolio-info .preview-link, .portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 30px);
  font-size: 56px;
  top: calc(50% - 36px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}
.portfolio .portfolio-content .portfolio-info .preview-link:hover, .portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}
.portfolio .portfolio-content:hover .portfolio-info {
  opacity: .8;
}
.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .portfolio .portfolio-content .portfolio-info {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
  }
  .portfolio .portfolio-content .portfolio-info .preview-link, .portfolio .portfolio-content .portfolio-info .details-link {
    position: absolute;
    left: calc(50% - 20px);
    font-size: 40px;
    top: calc(50% - 24px);
    color: #fff;
    transition: 0.3s;
    line-height: 1.2;
  }
}
#news .news {
  background-color: #FBF3DA;
  color: #4F4F4F;
  font-size: 21px;
  padding: 18px 6px;
  border-bottom: 2px solid #fff;
}
#news .news-title {
  font-size: 24px;
  background-color: #F0C94D;
  color: var(--surface-color);
  padding: 18px 6px;
}
#news .btn-action {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 4px;
  padding: 4px 40px;
  background-color: #3575C5;
  color: #fff;
}
@media (max-width: 769px) {
  #news .news-location {
    color: #CA9B08;
    font-size: 21px;
  }
}
@media (max-width: 576px) {
  #news .news {
    font-size: 18px;
    padding: 6px 6px;
    border-bottom: 0;
  }
  #news .news-location {
    color: #CA9B08;
    font-size: 24px;
    border-top: 1px solid #fff;
  }
  #news .news-date {
    font-size: 21px;
  }
  #news .w-100 {
    height: 2px;
  }
  #news .btn-action {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 4px 20px;
  }
}
#action {
  position: fixed;
  right: 6px;
  bottom: 80px;
  z-index: 99999;
  background-color: transparent;
  width: 116px;
  height: 116px;
  cursor: pointer;
}
@media (max-width: 576px) {
  #action {
    right: 6px;
    bottom: 100px;
    width: 90px;
    height: 90px;
  }
}
/*--------------------------------------------------------------
# Section List Style (for 活動條列清單)
--------------------------------------------------------------*/
.section ul {
  margin: 1.5em 0 0 1.2em;
  padding: 0;
  list-style-type: disc;
}
.section ul li {
  margin-bottom: 0.5em;
  font-size: 18px;
  line-height: 1.75;
  color: var(--default-color);
}
.section ul li strong {
  color: var(--heading-color);
}
@media (max-width: 768px) {
  .section ul li {
    font-size: 16px;
    line-height: 1.7;
  }
}
.pic {
  float: left;
  max-width: 140px;
  height: auto;
  margin-right: 20px;
}
@media (max-width: 768px) {
  .pic {
    width: 200px;
    height: auto;
  }
}
@media (max-width: 567px) {
  .pic {
    float: none;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
  }
}
/*--------------------------------------------------------------
# 命運之路+ 專案樣式
--------------------------------------------------------------*/

/* 所有區塊白底 */
.section { background-color: #fff !important; }

/* 字級系統 */
.section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.section h3[class*="hl-"] { display: flex; align-items: center; gap: .4rem; }
.section h3[class*="hl-"]::before {
  content: '"'; font-family: Georgia, serif; font-size: 3.6rem;
  line-height: 1; opacity: .55; margin-bottom: .15rem; flex-shrink: 0;
}
.section h3.hl-blue   { color: var(--blue); }
.section h3.hl-green  { color: var(--green); }
.section h3.hl-yellow { color: var(--yellow); }
.section h3.hl-pink   { color: var(--pink); }
.section h3.hl-brown  { color: var(--brown); }
.section h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.section h5 { font-size: 1.1rem;  font-weight: 700; margin-bottom: .4rem; }
.section ul, .section ol { font-size: 18px; line-height: 1.75; }
.section ul ul, .section ol ul, .section ul ol, .section ol ol { font-size: 1em; }
.section li { margin-bottom: .25rem; }

/* 區塊標題 */
.section-title { color: var(--brown) !important; font-weight: 700; }

/* 強調色文字 */
.hl-blue   { color: var(--blue); }
.hl-green  { color: var(--green); }
.hl-yellow { color: var(--yellow); }
.hl-pink   { color: var(--pink); }
.hl-brown  { color: var(--brown); }

/* 章節小標籤 */
.sub-heading { display: inline-block; padding: .25rem .9rem; border-radius: 30px; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.sub-heading-blue   { background: var(--blue);   color: #fff; }
.sub-heading-green  { background: var(--green);  color: #fff; }
.sub-heading-yellow { background: var(--yellow); color: #fff; }
.sub-heading-pink   { background: var(--pink);   color: #fff; }
.sub-heading-brown  { background: var(--brown);  color: #fff; }

/* 知識百科卡片 */
.knowledge-card {
  background: #fff; border-radius: 12px; border: 1px solid #eee;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  height: 100%; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer;
}
.knowledge-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.13); border-color: var(--pink-mid); }
.knowledge-card:hover .kc-img { transform: scale(1.04); transition: transform .35s ease; }
.knowledge-card .kc-img { transition: transform .35s ease; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.knowledge-card .kc-body { padding: 1rem 1.1rem 1.2rem; flex: 1; }
.knowledge-card .kc-num { display: inline-block; background: var(--pink); color: #fff; font-weight: 700; font-size: .78rem; border-radius: 20px; padding: .1rem .55rem; margin-bottom: .4rem; }
.knowledge-card h5 { color: var(--brown); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.knowledge-card p { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 0; }
.kc-text { max-height: 5.8em; overflow: hidden; transition: max-height .35s ease; }
.kc-text.expanded { max-height: 600px; }
.kc-toggle { display: inline-block; margin-top: .35rem; font-size: 12px; color: var(--pink); cursor: pointer; font-weight: 700; border: none; background: none; padding: 0; }
.kc-toggle:hover { text-decoration: underline; }
.knowledge-card.no-img { border-left: 5px solid var(--pink); }
.knowledge-card.no-img .kc-body { padding-top: 1.2rem; }
@media (max-width: 575px) {
  #knowledge .col-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
  .knowledge-card .kc-img { aspect-ratio: 1/1; }
}

/* 延伸學習卡片 */
.extend-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.extend-card .card-header { background: var(--green-light); color: var(--brown); font-weight: 700; padding: .75rem 1.2rem; border-bottom: 2px solid var(--green-mid); }

/* 理念區塊 */
.concept-box { background: var(--yellow-light); border-radius: 10px; padding: 1.1rem 1.4rem; height: 100%; }
.concept-box p.fw-bold { font-size: 1.2rem; }

/* 教師手冊章節 */
.rc-chapter { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: .9rem 1.1rem; height: 100%; }
.rc-chapter-title { font-weight: 700; color: var(--brown); margin-bottom: .5rem; }
.rc-chapter ul { margin: 0; padding-left: 1.2rem; }

/* 資源下載卡 */
.resource-card { background: #fff; border-radius: 10px; padding: 1.2rem 1.5rem; height: 100%; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-top: 4px solid var(--yellow); }
.resource-card h5 { color: var(--brown); font-weight: 700; }

/* 專家學者推薦標題 */
.expert-heading { display: flex; align-items: center; gap: .75rem; }
.expert-heading h3::before { display: none; }
.expert-quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--green-mid); margin-bottom: .25rem; user-select: none; }

/* 區塊副標題 */
.section-subtitle-lg { font-size: 1.6rem; font-weight: 700; line-height: 1.4; margin-bottom: .6rem; }

/* 教案研發人 */
.author-card { display: flex; gap: 2.5rem; align-items: flex-start; background: transparent; padding: 0; }
.author-photo-wrap { flex: 0 0 260px; text-align: center; }
.author-photo { width: 220px; height: 220px; object-fit: cover; object-position: center top; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); margin-bottom: .8rem; }
.section p.author-name { font-size: 1.7rem; font-weight: 700; color: var(--yellow); margin-bottom: .2rem; }
.section p.author-years { font-size: .9rem; color: var(--brown); margin-bottom: 0; line-height: 1.4; }
.author-info { flex: 1; }
.section p.developer-section-label { font-weight: 700; font-size: 1rem; color: var(--brown); margin-bottom: .4rem; }
@media (max-width: 768px) {
  .author-card { flex-direction: column; align-items: center; padding: 1.5rem 1.2rem; gap: 1.2rem; }
  .author-photo-wrap { flex: none; }
}

/* 推薦引言 */
.quote-block { border-left: 4px solid var(--green); padding: .9rem 1.2rem; background: var(--green-light); border-radius: 0 10px 10px 0; }

/* KV 主視覺 */
.kv-wrap { position: relative; max-width: 1440px; margin: 0 auto; }
.kv-img { display: block; width: 100%; }
.kv-btn-pos { position: absolute; left: 76%; top: 83%; transform: translateX(-50%); display: block; }

/* KV 桌機按鈕 */
a.btn-game.btn-game-kv-inner {
  display: block;
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  padding: clamp(0.45rem, 0.65vw, 0.7rem) clamp(1.3rem, 2.2vw, 2.4rem);
  white-space: nowrap;
  animation: game-pulse-kv 2.2s ease-in-out infinite;
}
a.btn-game.btn-game-kv-inner:hover,
a.btn-game.btn-game-kv-inner:active,
a.btn-game.btn-game-kv-inner:focus {
  animation: none; transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(237,169,169,.5); opacity: .92;
}

/* KV 手機按鈕 */
a.btn-game.btn-game-kv-mob {
  font-size: 1.6rem; padding: .9rem 3.2rem;
  margin: 1rem auto 0; width: fit-content;
  animation: game-pulse-kv 2.2s ease-in-out infinite;
}
a.btn-game.btn-game-kv-mob:hover,
a.btn-game.btn-game-kv-mob:active,
a.btn-game.btn-game-kv-mob:focus {
  animation: none; transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(237,169,169,.5); opacity: .92;
}

/* 遊戲截圖 */
.game-shot { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.12); transition: transform .25s ease, box-shadow .25s ease; }
.game-shot img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.game-shot:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* 前往遊戲按鈕 */
@keyframes game-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,169,169,.55), 0 6px 20px rgba(237,169,169,.35); transform: translateY(0); }
  50%       { box-shadow: 0 0 0 10px rgba(237,169,169,0), 0 8px 28px rgba(237,169,169,.45); transform: translateY(-3px); }
}
@keyframes game-pulse-kv {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,169,169,.55), 0 6px 20px rgba(237,169,169,.35); }
  50%       { box-shadow: 0 0 0 10px rgba(237,169,169,0), 0 8px 28px rgba(237,169,169,.45); }
}
@keyframes game-icon-shake {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(-12deg); }
  40%       { transform: rotate(12deg); }
  60%       { transform: rotate(-6deg); }
  80%       { transform: rotate(6deg); }
}
.btn-game {
  display: inline-block; background: #eda9a9; color: #fff !important;
  font-size: 1.6rem; font-weight: 700; padding: .9rem 3.2rem;
  border-radius: 50px; text-decoration: none; letter-spacing: .05em;
  animation: game-pulse 2.2s ease-in-out infinite;
  transition: transform .2s, opacity .2s;
}
.btn-game:hover { animation: none; transform: scale(1.06) translateY(-2px); box-shadow: 0 10px 30px rgba(237,169,169,.5); opacity: .92; }
.btn-game-icon { display: inline-block; animation: game-icon-shake 2.2s ease-in-out infinite; }
.btn-game:hover .btn-game-icon { animation: none; }

/* 資源下載按鈕 */
@keyframes dl-bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-4px); }
  70%       { transform: translateY(-2px); }
}
.btn-dl .bi-download { display: inline-block; animation: dl-bounce 1.8s ease-in-out infinite; }
.btn-dl:hover .bi-download { animation: none; transform: translateY(3px); transition: transform .2s ease; }
.btn-dl { transition: opacity .2s, transform .15s; }
.btn-dl:hover { opacity: .88; transform: scale(1.03); }

/* 區塊分隔線 */
.section hr { border-color: #eee; }

/* 專家學者推薦 Swiper */
.advocate-swiper { border-radius: 16px; overflow: hidden; }
.advocate-slide { display: flex; align-items: stretch; background: var(--green-light); height: 380px; }
.advocate-img-wrap { flex: 0 0 38%; max-width: 38%; overflow: hidden; }
.advocate-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.advocate-text { flex: 1; padding: 2rem 2.4rem; display: flex; flex-direction: column; overflow: hidden; }
.advocate-name { font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: .15rem; flex-shrink: 0; }
.advocate-role { font-size: .95rem; color: var(--brown); font-weight: 600; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--green-mid); flex-shrink: 0; }
.advocate-body { flex: 1; overflow-y: auto; padding-right: .3rem; }
.advocate-body p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 0; }
.advocate-body::-webkit-scrollbar { width: 4px; }
.advocate-body::-webkit-scrollbar-track { background: transparent; }
.advocate-body::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }
.advocate-swiper-wrap { position: relative; padding: 0 32px; }
.advocate-btn-prev, .advocate-btn-next { color: var(--green) !important; background: rgba(255,255,255,.85); border-radius: 50%; width: 38px !important; height: 38px !important; top: 50% !important; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.advocate-btn-prev { left: 4px !important; }
.advocate-btn-next { right: 4px !important; }
.advocate-btn-prev::after, .advocate-btn-next::after { font-size: .95rem !important; font-weight: 700; }
.advocate-btn-prev:hover, .advocate-btn-next:hover { background: #fff; }
@media (max-width: 576px) { .advocate-swiper-wrap { padding: 0 28px; } }
@media (max-width: 768px) {
  .advocate-slide { flex-direction: column; height: 460px; }
  .advocate-img-wrap { flex: 0 0 76px; max-width: 76px; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--green-mid); margin: 1.1rem auto .4rem; }
  .advocate-img-wrap img { object-position: center 10%; }
  .advocate-text { flex: 1; padding: .3rem 1.2rem .8rem; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
  .advocate-name { font-size: 1.05rem; flex-shrink: 0; }
  .advocate-role { font-size: .82rem; text-align: center; margin-bottom: .6rem; padding-bottom: .5rem; flex-shrink: 0; }
  .advocate-body { flex: 1; overflow-y: auto; text-align: left; }
  .advocate-body p { font-size: 15px; }
}
