﻿/* =========================================
   1. ROOT VARIABLES (?�山人壽?��??��? Brutalist 設�?)
   ========================================= */
:root {
  --ns-blue: #0e56c2;
  --ns-green: #85c134;
  --ns-yellow: #fabe00;

  --ns-orange: #ff5722;
  --ns-pink: #ff56c1;

  --ns-black: #2a2a2a;
  --ns-white: #ffffff;

  --ns-border: 2px solid var(--ns-black);
  --ns-shadow: 4px 4px 0px var(--ns-black);
  --ns-radius: 20px;

  /* Clip Paths */
  --clip-path: polygon(40px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 40px);
}

/* =========================================
   2. RESET & BASE STYLES (?��??�置?�全?�設�?
   ========================================= */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
  position: relative;
  width: 100%;
  font-family: 'Ubuntu', 'Noto Sans TC', sans-serif;
  font-optical-sizing: auto;
  color: #2a2a2a;
  background-color: #e8f4ff;
  font-size: 16px;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  background: linear-gradient(135deg, rgba(250, 190, 0, 0.15) 0%, rgba(133, 193, 52, 0.08) 40%, rgba(14, 86, 194, 0.12) 100%);
}

section {
  width: 100%;
  position: relative;
  padding: 0;
}

h1,
h2 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #2a2a2a;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

ul li {
  list-style: none;
  padding: 0;
}

em {
  font-style: normal;
}

a {
  color: #2a2a2a;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none !important;
}

a:hover {
  color: #011b41;
}

:focus {
  outline: none;
}

button {
  border: none;
  cursor: pointer;
}

button.defult {
  cursor: default;
}

button:focus {
  outline: none;
}

input[type="text"],
input[type="password"],
textarea,
select {
  color: #000000;
  outline: none;
  border: 0px solid #000000;
}

::-webkit-input-placeholder {
  color: #6a6a6a;
  opacity: 1;
}

::placeholder {
  color: #868686;
  opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 3px;
  opacity: 0.4;
}

::-webkit-scrollbar-track {
  background: #bbbbbb;
}

::-webkit-scrollbar-thumb {
  height: 3px;
  background: #0e56c2;
}

::-webkit-scrollbar-thumb:hover {
  height: 1px;
  background: #0e56c2;
}

/* =========================================
   3. UTILITIES & HELPERS (?�用工具類別)
   ========================================= */
.time-hidden {
  display: none !important;
}

.hide {
  display: none !important;
}

.hidden {
  overflow: hidden;
  display: none;
  visibility: hidden;
}

.full-box {
  margin: 0 auto;
}

.greybg {
  color: #fff !important;
  background: #00A0DF !important;
}

.otherbg {
  color: #fff !important;
  background: #969696 !important;
}

.bluebg {
  color: #fff !important;
  background: #0e56c2 !important;
}

.redtxt {
  font-weight: 700;
  color: #0e56c2 !important;
}

a.redtxt:hover {
  color: #0e66c4 !important;
}

p.redtxt {
  margin: 6px 0 10px 0;
  font-size: 0.875rem;
  font-weight: 400;
}

.greentxt {
  color: #0e56c2 !important;
  font-weight: 700;
}

a.greentxt:hover {
  color: #011b41 !important;
}

.yellowtxt {
  color: #f0eb2e !important;
  font-weight: bold;
}

p.noData {
  width: 40%;
  position: relative;
  margin: 50px auto;
  text-align: center;
  color: #2a2a2a;
  border-radius: 20px;
  padding: 12px 20px;
}

p.noData span {
  padding: 10px;
  font-size: 1.06rem;
  font-weight: 300;
  font-family: "Roboto Condensed", sans-serif;
}

@media(max-width:768px) {
  p.noData {
    width: 60%;
    margin: 40px auto;
  }
}

@media(max-width:500px) {
  p.noData {
    width: 90%;
  }
}

/* =========================================
   4. LAYOUT CONTAINERS (?�面容器)
   ========================================= */
.wrapper {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0px;
}

@media (max-width: 1450px) {
  .wrapper {
    max-width: none;
  }
}

.wrapperOnly {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(14, 86, 194, 0.08);
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #2a2a2a;
  box-shadow: 0 8px 30px rgba(14, 86, 194, 0.04);
}

/* =========================================
   5. TYPOGRAPHY & COMMON TABLES (?��??��??�通用表格)
   ========================================= */
.info-txt {
  width: 100%;
  margin: 0 auto;
}

.info-txt h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 900;
  color: #2a2a2a;
}

.info-txt p {
  color: #2a2a2a;
  font-size: 1rem;
}

.info-txt p a {
  position: relative;
  color: #0e56c2;
  font-weight: 600;
  cursor: pointer;
}

.info-txt p a.link {
  font-size: 1.6rem;
  line-height: 1.8;
}

.info-txt img.qrcode {
  width: 100%;
  max-width: 180px;
  margin: 20px 0;
}

.info-txt ul.rules,
.info-txt ul.dot {
  padding: 0px 14px;
  margin-left: 20px;
  text-align: left;
}

.info-txt ul.rules li,
.info-txt ol {
  list-style: decimal;
  line-height: 1.8;
  font-size: 1rem;
}

.info-txt ul.rules li a {
  color: #0e56c2;
  font-weight: bold;
}

.info-txt ul.dot,
.info-txt ul.rules li ol {
  padding-left: 20px;
  margin: 8px 0 12px 0px;
}

.info-txt ul.dot li,
.info-txt ul.rules li ol li {
  list-style-type: disc;
  font-size: 0.93rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.fulltable {
  width: 100%;
  max-width: 100%;
  margin: 10px auto;
  overflow-x: auto;
}

table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0px auto;
}

table tr th,
table tr td {
  padding: 10px;
  text-align: center;
  line-height: 1.8;
}

table tr:nth-child(even) {
  background: #EFEFEF;
}

table tr th,
table thead tr th {
  background: #0e56c2;
  color: #fff;
  font-weight: 500;
}

table tbody tr th {
  background: #00A0DF;
}

table tr.highlight th,
table tr.highlight td {
  background: #e35f07;
  color: #fff;
}

table tr.highlight td {
  text-align: left;
}

@media (max-width: 1090px) {
  table {
    min-width: 500px;
    font-size: 0.93rem;
  }

  .info-txt h2,
  .info-txt h3 {
    font-size: 1.4rem;
  }

  .info-txt ul.rules,
  .info-txt ul.dot {
    padding: 0px 0px;
  }
}

/* =========================================
   6. NAVIGATION & FIXED ELEMENTS (?��?角�???
   ========================================= */
.btn-top {
  position: fixed;
  right: 24px;
  bottom: 64px;
  z-index: 100;
  cursor: pointer;
}

.btn-top .bg {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-image: url("../images/gotop.png");
  background-repeat: no-repeat;
  transition: 0.4s ease-in-out;
}

/* =========================================
   修正與優化右下角浮動按鈕 (.s-info-right)
   ========================================= */

/* 1. 外層容器：增加 gap 容納外圍線條與浮動空間 */
.s-info-right {
  position: fixed;
  right: 28px;
  bottom: 166px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 2. 方形按鈕基礎設定 (含浮動動畫) */
.s-info-right a.gotolist {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 1px;
  background: #ffffff;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  /* 讓閃光不出界，且不會切到外圍的 box-shadow */
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  animation: float 3s ease-in-out infinite;
  /* 持續上下浮動 */
}

.s-info-right a.gotolist:nth-child(2) {
  animation-delay: 0.3s;
  /* 讓兩個按鈕浮動時間稍微錯開，更有層次感 */
}

.s-info-right a.gotolist b {
  position: relative;
  z-index: 2;
  /* 確保文字在閃光層之上 */
  background: none;
  -webkit-text-fill-color: currentcolor;
  color: inherit;
  font-weight: 900;
  text-align: center;
}

/* =========================================
   3. 跑道線條 (利用 box-shadow 製作多層同心框)
   ========================================= */
/* 第一個按鈕：報名連結 (藍色) */
.s-info-right a.gotolist:nth-child(1) {
  color: #0e56c2;
  border: 2px solid #0e56c2;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #0e56c2,
    0 0 0 8px #ffffff,
    0 0 0 10px #0e56c2;
}

/* Hover：底色填滿、線條微加粗、加上底部柔光 */
.s-info-right a.gotolist:nth-child(1):hover {
  background: #0e56c2;
  color: #ffffff;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #0e56c2,
    0 0 0 9px #ffffff,
    0 0 0 12px #0e56c2,
    0 10px 20px rgba(14, 86, 194, 0.3);
}

/* 第二個按鈕：報名查詢 (綠色) */
.s-info-right a.gotolist:nth-child(2) {
  color: #85c134;
  border: 2px solid #85c134;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #85c134,
    0 0 0 8px #ffffff,
    0 0 0 10px #85c134;
}

/* Hover：底色填滿、線條微加粗、加上底部柔光 */
.s-info-right a.gotolist:nth-child(2):hover {
  background: #85c134;
  color: #ffffff;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px #85c134,
    0 0 0 9px #ffffff,
    0 0 0 12px #85c134,
    0 10px 20px rgba(133, 193, 52, 0.3);
}

/* =========================================
   4. Hover 閃光掃過特效 (Shine Effect)
   ========================================= */
.s-info-right a.gotolist::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  /* 傾斜的白色光暈 */
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  z-index: 1;
}

/* 滑鼠移入時，觸發光暈從左掃到右 */
.s-info-right a.gotolist:hover::before {
  animation: shineSweep 0.6s ease-in-out forwards;
}

@media (max-width: 500px) {
  .s-info-right a.gotolist {
    width: 52px;
    height: 52px;
    font-size: .93rem;
  }
}

@keyframes shineSweep {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* =========================================
   5. 上下浮動動畫 (Float Animation)
   ========================================= */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* =========================================
   7. COMPONENTS (標籤?�、FAQ?�特?�卡??
   ========================================= */
/* Tabs */
.tabs input[name=tab-control] {
  display: none;
}

.tabs ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  margin-bottom: 20px;
}

.tabs ul li label {
  width: 100%;
  padding: 10px;
  background: #fff;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.tabs .content section {
  display: none;
  animation: content 0.3s ease-in-out;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~.content>section:nth-child(1),
.tabs input[name=tab-control]:nth-of-type(2):checked~.content>section:nth-child(2),
.tabs input[name=tab-control]:nth-of-type(3):checked~.content>section:nth-child(3) {
  display: grid;
  gap: 20px;
}

.tabs ul li:first-child,
.tabs ul li:first-child label {
  margin-left: 0px;
}

.tabs.route ul {
  width: 100%;
  display: Flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
}

.tabs.route .content {
  padding: 24px;
  background: #fff;
}

.tabs.route ul li {
  width: 100%;
  display: Flex;
  align-items: center;
  gap: 10px;
}

.tabs.route ul li label {
  width: 100%;
  font-size: 1.25rem;
  border-radius: 12px 12px 0px 0px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tabs.route ul li label span {
  font-weight: 500;
}

.tabs.route ul li label b {
  font-weight: 800;
  margin-top: -5px;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~ul>li:nth-child(1)>label {
  cursor: default;
  background: #0e56c2;
  color: #fff;
  font-weight: bold;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~ul>li:nth-child(1)>label em {
  color: #fff;
}

.tabs input[name=tab-control]:nth-of-type(1):checked~.slider {
  transform: translateX(0%);
}

.tabs input[name=tab-control]:nth-of-type(1):checked~.content>section:nth-child(1) {
  display: grid;
  gap: 20px;
}

.tabs input[name=tab-control]:nth-of-type(2):checked~ul>li:nth-child(2)>label {
  cursor: default;
  background: #0e56c2;
  color: #fff;
  font-weight: bold;
}

.tabs input[name=tab-control]:nth-of-type(2):checked~ul>li:nth-child(2)>label em {
  color: #fff;
}

.tabs input[name=tab-control]:nth-of-type(2):checked~.slider {
  transform: translateX(100%);
}

.tabs input[name=tab-control]:nth-of-type(2):checked~.content>section:nth-child(2) {
  display: grid;
  gap: 20px;
}

.tabs input[name=tab-control]:nth-of-type(3):checked~ul>li:nth-child(3)>label {
  cursor: default;
  background: #0e56c2;
  color: #fff;
  font-weight: bold;
}

.tabs input[name=tab-control]:nth-of-type(3):checked~ul>li:nth-child(3)>label em {
  color: #fff;
}

.tabs input[name=tab-control]:nth-of-type(3):checked~.slider {
  transform: translateX(200%);
}

.tabs input[name=tab-control]:nth-of-type(3):checked~.content>section:nth-child(3) {
  display: grid;
  gap: 20px;
}

/* =========================================
   FAQ 常�??��??��?(Borderless Floating Cards)
   ========================================= */
.mpgdetail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mpgdetail h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0e56c2;
  padding-left: 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.mpgdetail h1::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 5px;
  background: #85c134;
  border-radius: 4px;
}

.qa_box {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* ?�制每個�?題�??��?距離 */
}

/* FAQ ?��??��?外�? (?��??�懸�? */
.faq-drawer {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(14, 86, 194, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border-left: 0px solid transparent;
}

.faq-drawer:hover {
  box-shadow: 0 8px 30px rgba(14, 86, 194, 0.1);
  transform: translateY(-2px);
}

/* 展�??�左?�亮起漸層�?�?*/
input[type="checkbox"].faq-drawer__trigger:checked+.faq-drawer__title {
  box-shadow: inset 4px 0 0 0 #0e56c2;
  /* ?�用?�陰影模?�左??border，避?��??�跳??*/
}

/* ?��? Checkbox */
input[type="checkbox"].faq-drawer__trigger {
  display: none;
}

/* ??Q 標�??��???*/
.faq-drawer__title {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2a2a2a;
  padding: 24px;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  margin: 0;
  user-select: none;
}

/* ?��? Q 題�??�特殊�???(?�用?�本??em 標籤) */
.faq-drawer__title em {
  font-style: normal;
  color: #0e56c2;
  font-weight: 900;
  margin-right: 12px;
  font-family: 'Roboto', sans-serif;
}

/* 標�? Hover ?��? */
.faq-drawer__title:hover {
  color: #0e56c2;
}

/* ???�代?�「�??��?展�??��? ??*/
.faq-drawer__title::after,
.faq-drawer__title::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 32px;
  /* 對�?第�?行�?字�?視覺中�? */
  background-color: #a0a0a0;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
}

/* 繪製 �??��?橫�? */
.faq-drawer__title::after {
  width: 14px;
  height: 2px;
  margin-top: 6px;
  /* ?�直居中微調 */
}

/* 繪製 �??��??��? */
.faq-drawer__title::before {
  width: 2px;
  height: 14px;
  right: 30px;
  /* 調整?��?位置使其?�橫線交??*/
}

/* Hover 變色 */
.faq-drawer__title:hover::after,
.faq-drawer__title:hover::before {
  background-color: #0e56c2;
}

/* 展�??�?��?標�?變色，�? ?��?轉�? ? ??*/
.faq-drawer__trigger:checked+.faq-drawer__title {
  color: #0e56c2;
}

.faq-drawer__trigger:checked+.faq-drawer__title::after {
  transform: rotate(135deg);
  background-color: #0e56c2;
}

.faq-drawer__trigger:checked+.faq-drawer__title::before {
  transform: rotate(135deg);
  background-color: #0e56c2;
}

/* ?��?外層：控?�平滑�??��???*/
.faq-drawer__content-wrapper {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-drawer__trigger:checked+.faq-drawer__title+.faq-drawer__content-wrapper {
  max-height: 1200px;
}

/* ???��??�塊�???(A ?�容?��? ??*/
.faq-drawer__content {
  padding: 0 0px 30px 0px;
  /* ?�部不�??��??��?題�? padding ?��? */
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a4a;
  background: #ffffff;
}

/* ?�用?�部??div.ans ??em 建�?乾淨?�網?��?�?*/
.faq-drawer__content-wrapper .faq-drawer__content {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-weight: 400;
  padding-top: 16px;
  /* ?��?題�??��?�?*/
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  /* ?��?極淡?��?線�??��? */
  margin: 0 24px;
  /* 讓�?線�?要貼?�卡?��?�?*/
  width: calc(100% - 48px);
}

/* ?��? A 題�??��???*/
.faq-drawer__content em {
  font-style: normal;
  color: #85c134;
  /* ?�山�?*/
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  margin-top: 2px;
  /* 微調對�?段落 */
}

/* ?��?段落設�? */
.faq-drawer__content .ans {
  background: #f8fbff;
  /* ?��??�塊�?上極淡�??�灰?��???*/
  padding: 16px 20px;
  border-radius: 0 12px 12px 12px;
  /* ?��?話泡泡�?�???��? */
}

.faq-drawer__content .ans p {
  margin: 0 0 12px 0;
}

.faq-drawer__content .ans p:last-child {
  margin-bottom: 0;
}

/* 超�??�???��? */
.faq-drawer__content .ans a {
  color: #0e56c2;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 86, 194, 0.3);
  text-underline-offset: 4px;
  transition: all 0.3s;
}

.faq-drawer__content .ans a:hover {
  color: #85c134;
  text-decoration-color: #85c134;
}

/* ?��??�微�?*/
/* 響應式微調 */
@media (max-width: 768px) {
  .tabs.route ul li label {
    font-size: 1rem;
  }

  .faq-drawer__title em {
    margin-right: 8px;
  }

  .faq-drawer__title {
    font-size: 1.05rem;

    /* 原本是 padding: 12px; 請替換成下面這行 */
    padding: 16px 48px 16px 16px;
    /* 上下左右調整，特別將右側預留 48px */
  }

  /* 調整展開收合圖示位置 (配合稍微加大的 padding) */
  .faq-drawer__title::after,
  .faq-drawer__title::before {
    right: 20px;
    top: 20px;
    /* 原為 26px，配合新的 padding 微調高度讓視覺更置中 */
  }

  .faq-drawer__title::before {
    right: 26px;
  }

  .faq-drawer__content-wrapper .faq-drawer__content {
    padding: 16px 0 24px 0;
    margin: 0 20px;
    width: calc(100% - 40px);
    gap: 8px;
  }

  .faq-drawer__content .ans {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Shutter Card */
.shutter-card {
  position: relative;
  width: 300px;
  height: 180px;
  background-color: #000000;
  clip-path: var(--clip-path);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.shutter-card::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: #000000;
  transform: translateX(-100%);
  transition: transform 0.4s ease-out;
  clip-path: var(--clip-path);
  z-index: 2;
}

.shutter-card:hover::after {
  transform: translateX(0);
}

.shutter-card .content {
  position: relative;
  z-index: 3;
  color: #000000;
  transition: color 0.4s;
}

.shutter-card:hover .content {
  color: #fff;
}

/* =========================================
   8. BANNER & INDEX LAYOUT (首�?外層框架 - 永�??�康風格)
   ========================================= */
section.banner {
  z-index: 0;
  position: relative;
}

/* 天空漸層?�色?�景，仿永�??�康網�??��??��? */
section.indexInner {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 40px 40px 80px;
  background: linear-gradient(180deg, #d4ecff 0%, #e6f3fe 30%, #e8f4ff 60%, #ffffff 100%);
}

/* ?�景?��??????- ?�強?��??�色?��? */
section.indexInner::before {
  content: "";
  position: absolute;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 189, 233, 0.12) 0%, rgba(14, 86, 194, 0.06) 50%, transparent 100%);
  top: -30vw;
  left: -20vw;
  z-index: -1;
  filter: blur(60px);
}

/* ?��?角�?綠色?��? */
section.indexInner::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 193, 52, 0.08) 0%, transparent 70%);
  bottom: -20vw;
  right: -15vw;
  z-index: -1;
  filter: blur(80px);
}

/* 微�??��?質�??�主?�容?��? - 永�??�康風格 */
.inner-content-sticker {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 40px 100px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(14, 86, 194, 0.06);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

section.banner .main-kv {
  padding-bottom: 38%;
  display: flex;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

section.banner .main-kv.pc-kv {
  background-image: url("../images/banner.jpg");
}

section.banner .main-kv.mobile-kv {
  display: none;
}

@media (max-width: 768px) {
  section.indexInner {
    padding: 20px 20px 60px;
  }

  .inner-content-sticker {
    padding: 24px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    gap: 24px;
    border-radius: 20px;
  }
}

@media only screen and (max-width: 500px) {
  section.banner .main-kv.pc-kv {
    display: none;
  }

  section.banner .main-kv.mobile-kv {
    display: flex;
    background-image: url("../images/m-banner.jpg");
    background-size: contain;
    padding-bottom: 133%;
  }
}

/* =========================================
   9. MAIN INDEX CONTENT (首�??��?：倒數?�影?�、簡�?
   ========================================= */

/* --- 9.1 美�?：簡?�簡�?(.about_txt) - 精�?�??風格 --- */
.about_txt {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 40px;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
  position: relative;
}

/* 移除?��??�漸層�? */
.about_txt::before {
  display: none;
}

/* 精�??�巨?��??��?�?*/
.about_txt h2::before {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: rgba(14, 86, 194, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
}

.about_txt h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2;
  color: #0d4ea3;
  letter-spacing: .5px;
  position: relative;
  z-index: 2;
}

/* --- 9.2 美�?：倒數計�??��?(section.countdown) - 永�??�康風格 --- */
section.countdown {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 保�??�本?��??��?浮�?�?(?��??��??�話) */
section.countdown .left-pic,
section.countdown .right-pic {
  position: absolute;
  width: 16vw;
  height: 14vw;
  bottom: -10vw;
  background-size: contain;
  background-repeat: no-repeat;
  animation: float 4s ease-in-out infinite;
  display: none;
}

section.countdown .left-pic {
  left: 8vw;
  background-image: url("../images/left-pic-index.png");
}

section.countdown .right-pic {
  right: 12vw;
  width: 12vw;
  background-image: url("../images/right-pic-index.png");
}

.count-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ?�浮質�??�數字白??- 永�??�康風格 */
.count-block .item {
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 1vw;
  padding: 24px;
  min-width: 160px;
}

.count-block .item.dot {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 4rem;
  color: #0e56c2;
  margin: 0;
  min-width: auto;
  padding: 0 10px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  opacity: 0.5;
}

.count-block .item .amount span {
  font-size: 5.5rem;
  font-weight: 900;
  font-family: "Inter Tight", sans-serif;
  color: #0e56c2;
  line-height: 1;
}

.count-block .item p {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #85c134;
  margin-top: 10px;
  letter-spacing: 2px;
}

@media(max-width:1100px) {
  section.countdown {
    padding: 0;
  }

  .count-block .item.dot,
  .count-block .item .amount span {
    font-size: 4.5rem;
  }

  .count-block .item {
    min-width: 110px;
    padding: 20px;
  }
}

@media(max-width:880px) {

  .count-block .item.dot,
  .count-block .item .amount span {
    font-size: 3.5rem;
  }

  .count-block .item p {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .about_txt h2 {
    font-size: 1.2rem;
  }
}

@media(max-width:800px) {

  .count-block .item.dot,
  .count-block .item .amount span {
    font-size: 4rem;
  }

  .count-block .item {
    min-width: 76px;
    padding: 16px 8px;
    margin: 0 0.8vw;
    border-radius: 16px;
  }

  .count-block .item.dot {
    font-size: 2rem;
    padding: 0 5px;
  }

  .count-block .item p {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .count-block .item:first-child {
    flex-basis: 100%;
    padding: 0;
    margin-bottom: 0px;
  }

  /* 如果你的「天數」與「時數」之間有冒號 (.dot)，強制換行後冒號會掉到第二行最前面，這時必須將其隱藏 */
  .count-block .item:first-child+.item.dot {
    display: none;
  }
}

@media(max-width:414px) {

  .count-block .item.dot,
  .count-block .item .amount span {
    font-size: 3rem;
  }

  .count-block .item {
    min-width: 65px;
    padding: 8px;
    border-radius: 12px;
  }

  .count-block .item p {
    font-size: 0.7rem;
    margin-top: 6px;
  }

  .about_txt {
    padding: 8px;
  }

  .about_txt h2 {
    font-size: 1.05rem;
  }

  .about_txt h2::before {
    font-size: 4rem;
    top: -30px;
  }
}

/* --- 9.3 影�??��?(hs-responsive-embed-youtube) - 永�??�康風格 --- */
.hs-responsive-embed-youtube {
  position: relative;
  padding-bottom: 56.25%;
  margin: 0;
  border: none;
  box-shadow: 0 20px 60px rgba(14, 86, 194, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
}

.hs-responsive-embed-youtube iframe {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  top: 0;
  left: 0;
}

/* =========================================
   10. NEWS & AI CHAT (?�?��??��? AI ?��?)
   ========================================= */
.news_aichat {
  width: 100%;
  max-width: 1500px;
  margin: 20px auto;
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news_aichat .t-block .title,
.news_aichat .aichatbot .title {
  display: flex;
  align-items: end;
  gap: 8px;
  color: #2a2a2a;
  margin-bottom: 24px;
}

.news .t-block .title h2,
.aichatbot .title h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.875rem;
}

/* --- 列表容器 --- */
ul.news-block {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- 卡片本體 --- */
ul.news-block li {
  background: #ffffff;
  border: 1px solid #eef2f6;
  /* 邊框顏色改淺，更顯輕盈 */
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* 更滑順的貝茲曲線 */
  box-shadow: 0 4px 16px rgba(14, 86, 194, 0.03);
  overflow: hidden;
}

ul.news-block li:hover {
  transform: translateY(-3px);
  /* 取代原本的 top，效能更好 */
  background: #fafcff;
  border-color: rgba(14, 86, 194, 0.2);
  box-shadow: 0 12px 28px rgba(14, 86, 194, 0.08);
}

/* --- 連結排版 (Grid) --- */
.news-card-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

/* --- 左側日期區塊 --- */
.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f6fc;
  padding: 12px 16px;
  border-radius: 8px;
  color: #0e56c2;
  min-width: 80px;
  transition: background 0.3s ease;
}

ul.news-block li:hover .date-box {
  background: #0e56c2;
  color: #ffffff;
}

.date-box .year {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.2;
}

.date-box .md {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
  /* 借用你標頭載入的字體 */
  font-family: 'Inter Tight', sans-serif;
}

/* --- 右側內容區塊 --- */
.content-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 標題與標籤水平排列 */
.title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tag-new {
  background: #ff5722;
  /* 用亮色突顯 NEW */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 4px;
  /* 為了對齊標題第一行 */
}

ul.news-block h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.3s ease;
}

ul.news-block li:hover h2 {
  color: #0e56c2;
}

ul.news-block p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;

  /* 超過兩行自動加上 ... 省略號 */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- RWD 響應式調整 --- */
@media (max-width: 768px) {
  .news-card-link {
    grid-template-columns: 1fr;
    /* 手機版改為單欄，日期在上方 */
    gap: 16px;
    padding: 20px;
  }

  .date-box {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    background: transparent !important;
    color: #0e56c2 !important;
  }

  .date-box .year,
  .date-box .md {
    font-size: 1rem;
    margin-top: 0;
  }

  .title-wrapper {
    flex-wrap: wrap;
  }
}

.aichatbot iframe {
  border: 1px solid rgba(14, 86, 194, 0.1);
  box-shadow: 0 8px 30px rgba(14, 86, 194, 0.08);
  border-radius: 16px;
}

.ai-cover {
  width: 100%;
  height: 520px;
  background-color: #f0f7ff;
  background-image: radial-gradient(rgba(14, 86, 194, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(14, 86, 194, 0.1);
  border-radius: 0 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(14, 86, 194, 0.06);
}

.ai-content {
  padding: 30px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media(max-width:1024px) {
  .news_aichat {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* =========================================
   11. PROMOTION & SPONSORS (?�廣?��??��?)
   ========================================= */
section.promotion {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(232, 244, 255, 0.6) 100%);
}

section.promotion .title-s h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
}

.pro-row {
  display: flex;
  margin-top: 35px;
}

.pro-row .pro-item {
  width: 20%;
  padding: 1vw;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  margin-right: 20px;
  border: 1px solid rgba(14, 86, 194, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 244, 255, 0.5) 100%);
  gap: 12px;
  box-shadow: 0 6px 20px rgba(14, 86, 194, 0.05);
}

.spsor-box {
  display: grid;
  align-items: center;
  grid-template-columns: 250px auto;
  gap: 30px;
}

.spsor-box .pic {
  border: 1px solid rgba(14, 86, 194, 0.1);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(14, 86, 194, 0.06);
}

.spsor-box .pic img {
  border-radius: 16px;
}

/* =========================================
   12. GALLERY & MEDIA (?�簿?�其他�?�?
   ========================================= */
.wrapperOnly .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wrapperOnly .gallery a {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(14, 86, 194, 0.08);
  border-radius: 14px;
  transition: all .3s ease-in-out;
  box-shadow: 0 4px 16px rgba(14, 86, 194, 0.04);
}

.wrapperOnly .gallery a:hover {
  box-shadow: 0 8px 30px rgba(14, 86, 194, 0.12);
  transform: translateY(-3px);
}

section.number div {
  position: relative;
  width: 100%;
  padding-top: 28.125%;
  overflow: hidden;
  border-radius: 8px;
}

section.number div iframe {
  position: absolute;
  width: 98%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: none;
}

iframe.map {
  height: 240px;
}

@media(max-width:768px) {
  .wrapperOnly .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .spsor-box {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   13. ANIMATIONS (?��??�畫 Keyframes)
   ========================================= */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes parent-tab-image {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes content {
  from {
    opacity: 0;
    transform: translateY(5%);
  }

  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

@keyframes blink {

  0%,
  48%,
  52%,
  100% {
    height: 10px;
    background: #fff;
  }

  50% {
    height: 2px;
    background: #000000;
  }
}

/* =========================================
   14. 賽�?資�? / 競賽規�??��?(Rules Section)
   ========================================= */

/* 1. 外層?�景?��?�?*/
section.page {
  width: 100%;
  overflow-x: hidden;
}

section.page .bg_page {
  padding: 60px 40px 100px;
}

section.page .titleA {
  text-align: center;
  margin-bottom: 40px;
}

section.page .titleA h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #0e56c2;
  letter-spacing: 2px;
}

section.page .titleA p.small-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #85c134;
  margin-top: 8px;
}

/* 2. ?��?佈�?設�? (保�?並�???RWD) */
.wrapper.two-block {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 3. 左側?��??�單 (Side Menu) */
ul.side-menu.inner-content-sticker {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  flex: 0 0 280px;
  width: 280px;
  background: #ffffff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

ul.side-menu li {
  position: relative;
  padding-left: 14px;
  line-height: normal;
}

ul.side-menu li a {
  display: block;
  font-size: 1.1rem;
  color: #555555;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

ul.side-menu li.active a,
ul.side-menu li a:hover {
  color: #0e56c2;
  font-weight: 700;
}

ul.side-menu li.active::before,
ul.side-menu li:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 78%;
  border-radius: 4px;
  background: var(--ns-green);
}

/* 4. ?�側主�??�容?��?(Info Text Box) */
.info-txt-box.inner-content-sticker {
  flex: 1;
  min-width: 0;
  background-color: rgba(255, 255, 255, 0.65);
  padding: 50px 60px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: none;
}

/* 5. ?��??��?題層次優??*/
.info-txt-box>p {
  font-size: 1rem;
  line-height: 2;
  color: #444;
  background: #f5f1e5;
  padding: 16px;
  border-radius: 16px;
  border-left: 4px solid #fabe00;
}

.info-txt h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0e56c2;
  margin-bottom: 20px;
  padding-left: 14px;
  position: relative;
  display: flex;
  align-items: center;
}

.info-txt h3::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  width: 5px;
  background: #85c134;
  border-radius: 4px;
}

.info-txt h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 20px 0 12px;
}

/* 6. ?�表 (Lists) ?��? */
ul.rules,
ol.small-d {
  padding-left: 20px;
  margin: 20px 0;
}

ul.rules>li {
  font-size: 1.02rem;
  line-height: 2;
  color: #4a4a4a;
  margin-bottom: 8px;
}

ol.small-d>li {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 8px;
}

ul.rules>li::marker {
  font-weight: bold;
}

ul.rules a {
  color: #0e56c2;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 86, 194, 0.3);
  text-underline-offset: 4px;
  transition: all 0.3s;
}

ul.rules a:hover {
  color: #85c134;
  text-decoration-color: #85c134;
}

/* 7. 表格 (Table) ?�代?�優??*/
.fulltable {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.fulltable table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  min-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fulltable th,
.fulltable td {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  line-height: 1.8;
  font-size: 1rem;
  vertical-align: middle;
}

.fulltable tr:last-child th,
.fulltable tr:last-child td {
  border-bottom: none;
}

.fulltable th:last-child,
.fulltable td:last-child {
  border-right: none;
}

.fulltable thead th {
  background: #0e56c2 !important;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 1px;
  border: 0.5px solid rgba(255, 255, 255, 0.6)
}

.fulltable .greybg,
.fulltable .bluebg,
.fulltable .otherbg,
.fulltable tbody th {
  background: #f7f9fc !important;
  color: #333333 !important;
  font-weight: 700;
}

.fulltable td {
  color: #444;
}

.fulltable td ul.rules {
  margin-bottom: 0;
  text-align: left;
}

.fulltable h4 {
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.8;
}

/* 8. RWD ?��?式�?機�?調整 (Rules Section) */
@media (max-width: 1180px) {
  .wrapper.two-block {
    flex-direction: column;
    flex-wrap: wrap;
  }

  ul.side-menu.inner-content-sticker {
    position: relative;
    top: 0;
    width: 100%;
    flex: auto;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 16px;
    gap: 20px;
    border-radius: 16px;
    align-self: auto;
  }

  ul.side-menu::-webkit-scrollbar {
    display: none;
  }

  ul.side-menu li {
    padding-left: 0;
  }

  ul.side-menu li.active::before,
  ul.side-menu li:hover::before {
    top: auto;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
  }

  .info-txt-box.inner-content-sticker {
    width: 100%;
    flex: auto;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  section.page .bg_page {
    padding: 20px 15px 60px;
  }

  section.page .titleA {
    margin-bottom: 20px;
  }

  section.page .titleA h2 {
    font-size: 2.2rem;
  }

  .info-txt-box.inner-content-sticker {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .info-txt h3 {
    font-size: 1.4rem;
  }

  .fulltable th,
  .fulltable td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
}

.bracket-list {
  list-style-type: none;
  counter-reset: bracket-counter;
  padding-left: 0;
}

.bracket-list li {
  counter-increment: bracket-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.bracket-list li::before {
  content: "("counter(bracket-counter) ")";
  position: absolute;
  left: 0;
  top: 0;
}

.info-txt ul.rules li ol.bracket-list {
  padding-left: 0;
}

.info-txt ul.bracket-list {
  margin: 0.5rem 0;
}

.info-txt ul.rules li ol.bracket-list li::marker,
.info-txt ul.bracket-list li::marker {
  font-size: 0px;
}

.active-list {
  display: grid;
  align-items: center;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.active-list img {
  border-radius: 8px;
}

.gift-list {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.gift-list img {
  border-radius: 8px;
}

/* --- 整體容器與排版 --- */
.nanshan-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: inherit;
  color: #333;
  line-height: 1.8;
}

/* --- 左側 Logo 區塊 --- */
.nanshan-logo-wrapper {
  flex: 0 0 250px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.nanshan-logo {
  max-width: 100%;
  height: auto;
  /* 讓 Logo 隨著右側內容捲動時能稍作停留（可依需求保留或移除） */
  position: sticky;
  top: 40px;
}

/* --- 右側內容區塊 --- */
.nanshan-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  /* 各大段落之間的間距 */
}

.nanshan-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nanshan-section p {
  margin: 0;
  font-size: 1rem;
  color: #4b5563;
  /* 較柔和的深灰色 */
  text-align: justify;
}

/* --- 標題樣式 --- */
.nanshan-title {
  font-size: 1.75rem;
  color: #0070c0;
  /* 替換為南山企業藍 */
  margin: 0 0 8px 0;
  font-weight: 700;
  line-height: 1.4;
}

/* --- 調整後的標題樣式 --- */
.nanshan-subtitle {
  font-size: 1.4rem;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-weight: 600;

  /* 必須加上 relative，作為 ::before 絕對定位的基準點 */
  position: relative;
  /* 留出左側空間給裝飾線，取代之前的 border-left */
  padding-left: 16px;
}

/* --- 套用你提供的樣式到 h3 --- */
.nanshan-subtitle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 78%;
  /* 高度比例保留你原本的設定 */
  border-radius: 4px;
  /* 如果專案中沒有定義 var(--ns-green)，可以在後面補上色碼作為 fallback */
  background: var(--ns-green, #82c81d);
}

/* --- 健康行動卡片與按鈕 --- */
.nanshan-action-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.action-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.action-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-title {
  font-size: 1.25rem;
  color: #0070c0;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.action-link {
  display: inline-block;
  margin-top: 16px;
  color: #0070c0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease, transform 0.2s ease;
}

.action-link:hover {
  color: #004b87;
  transform: translateX(4px);
  /* 增加一點互動感 */
}

/* --- RWD 響應式設計 --- */
@media (max-width: 850px) {
  .nanshan-container {
    flex-direction: column;
    gap: 32px;
    padding: 24px 16px;
  }

  .nanshan-logo-wrapper {
    flex: 1 1 auto;
  }

  .nanshan-logo {
    max-width: 180px;
    position: static;
  }

  .active-list {
    grid-template-columns: 80px 1fr;
    align-items: flex-start;
    gap: 16px;
  }

  .active-list div {
    padding-top: 5px;
  }
}

/* =========================================
   文章通用排版模組 (Editor Content Styles)
   ========================================= */

.article-content {
  font-size: 1rem;
  line-height: 1.8;
}

/* --- 段落與標題文字 --- */
.article-content p {
  margin: 0 0 16px 0;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  color: #1f2937;
  font-weight: 600;
}

/* 讓段落開頭的粗體有稍微放大的標題感 */
.article-content p>strong:first-child {
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 4px;
}

/* --- 列表通用設定 (ul, ol) --- */
.article-content ul,
.article-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content li:last-child {
  margin-bottom: 0;
}

/* --- 有序列表 (1. 2. 3.) --- */
.article-content ol {
  list-style-type: decimal;
}

.article-content ol li {
  padding-left: 4px;
}

/* --- 無序列表 (圓點) --- */
.article-content ul,
.article-content ul li {
  list-style-type: disc;
}

.article-content ul li::marker {
  color: var(--ns-black);
}

.article-content ul ul,
.article-content ol ul,
.article-content ul ol,
.article-content ol ol {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 28px;
}

.article-content ul.list-unstyled {
  list-style-type: none;
  padding-left: 0;
}

.article-content ul.list-unstyled>li {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .article-content {
    padding: 24px 16px;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 20px;
  }
}

.article-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .article-content hr {
    margin: 16px 0;
  }
}

/* --- 內文標題區塊 --- */
.titleN {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid #f3f4f6;
}

/* --- 標題本體 --- */
.titleN h3 {
  margin: 0;
  font-size: 1.75rem;
  color: #0e56c2;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* --- 日期標籤 --- */
.titleN b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #6b7280;
  font-size: 0.95rem;
  font-family: 'Inter Tight', sans-serif;
}

.titleN b::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* --- RWD 手機版適應 --- */
@media (max-width: 768px) {
  .titleN {
    padding-bottom: 20px;
    margin-bottom: 0px;
  }

  .titleN h3 {
    font-size: 1.4rem;
    /* 手機版字體微調縮小 */
  }
}