* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.6; 
  font-size: 18px; 
  background: var(--white);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img { width: 172px; height: auto; }

.brand small {
  display: block;
  color: var(--brand-red);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.utility-nav a { padding: 8px 0; }

.site-nav {
  background: var(--brand-blue);
  color: var(--white);
}

.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:last-child { border-right: 1px solid rgba(255, 255, 255, .16); }
.site-nav a.active { background: var(--brand-blue-light); color: var(--white); }

.page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.page-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-height: 54px;
}

.page-nav strong {
  color: var(--brand-blue);
  font-size: 18px;
}

.page-nav a {
  color: #3d535a;
  font-size: 18px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  overflow: hidden;
  background: var(--brand-blue);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03);
}

.hero::after {
  display: none !important;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 450px;
  display: grid;
  align-content: center;
  padding: 64px 0 96px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 630px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  background: var(--brand-blue-light);
  color: var(--white);
  font-weight: 400;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .62);
  backdrop-filter: blur(8px);
}

/* LINE 按鈕預設樣式 */
.cta .button.line {
  background: #06C755 !important;
  color: #ffffff !important;
  margin-left: 0 !important;
  margin-right: 200px !important;	
}

.cta .button.line:hover {
  background: #05a847 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.quick-panel {
  position: relative;
  z-index: 2;
  margin: -54px auto 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-item {
  min-height: 108px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.quick-item:last-child { border-right: 0; }

.quick-item span {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.quick-item strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1.35;
}

section { padding: 16px 0; }

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 900;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 30px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head h2 {
    margin-left: 30px; /* 將數字改成你希望向右移動的距離，例如 10px、20px 或 30px */
}

.tour-grid,
.island-grid,
.destination-grid,
.season-grid,
.link-grid,
.faq {
  display: grid;
  gap: 18px;
}

.tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.island-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.destination-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.season-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.tour-card,
.info-card,
.season-card,
.link-card,
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(35, 52, 57, .07);
}

.tour-card { overflow: hidden; }

.tour-card .image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft-blue);
}

.tour-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.tour-card:hover .image img { transform: scale(1.04); }

.tour-body { padding: 26px; }

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 5px;
  color: var(--brand-blue); 
  font-size: 20px;
  font-weight: 800;
}

.pill.red {
  color: var(--brand-red);
}

h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0;
}

.price {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price div { min-width: 130px; }
.price span { display: block; color: var(--muted); font-size: 18px; }
.price strong { color: var(--brand-red); font-size: 26px; }

.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 2px;  /* 如果想縮小項目間距，可以把原本的 10px 改小（例如 6px） */
  color: #405058;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: .82em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--brand-red);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 2px;
  color: var(--brand-blue);
  font-weight: 600;
}

.pattern {
  background: url("https://www.utsc.com.tw/material-alias/homepage/tour-box-bg.jpg") repeat center top;
  background-size: 120%;
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  width: 100%; 
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px; 
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:first-child,
td:first-child {
  width: 15%; 
  font-weight: 700;
}

th {
  background: #f4f0e7;
  color: #27383d;
  font-size: 22px;
}

tr:last-child td { border-bottom: 0; }


.info-card,
.season-card,
.link-card {
  padding: 10px;
}

.info-card strong,
.season-card strong,
.link-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 20px;
}

.info-card p,
.season-card p,
.link-card p {
  margin: 0;
  color: var(--muted);
}

.link-card {
  border-top: 5px solid var(--brand-blue-light);
}

.link-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand-blue);
  font-weight: 900;
}

.faq details { padding: 18px 20px; }

.faq summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 600;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.btn-more {
  color: #007bff;        /* 藍色文字 */
  text-decoration: none; /* 移除預設底線 */
  font-weight: 400;
}

.btn-more:hover {
  color: #003d80;        /* 滑鼠移上去時顏色變深 */
  text-decoration: underline; /* 滑鼠移上去時顯示底線 */
}

.cta {
  padding: 40px 0;
  color: var(--white);
  background: var(--brand-blue);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta h2 { margin: 0; }
.cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .82); }

footer {
  padding: 28px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

/* 讓表格寬度佔滿容器 */
.compare-table table {
  width: 100%;
  table-layout: fixed; /* 這點很重要：這會強制讓欄位依照設定的比例，不會被文字長度撐開 */
  border-collapse: collapse;
}

/* 設定欄位寬度比例 */
.compare-table th:nth-child(1), 
.compare-table td:nth-child(1) {
  width: 12%;
}

.compare-table th:nth-child(2), 
.compare-table td:nth-child(2) {
  width: 44%;
}

.compare-table th:nth-child(3), 
.compare-table td:nth-child(3) {
  width: 44%;
}

/* 建議額外加上一些邊框與間距，讓表格更好看 */
.compare-table th, 
.compare-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

/* 只讓表格的第 2 欄與第 3 欄的表頭（<th>）文字置中 */
.compare-table th:nth-child(2),
.compare-table th:nth-child(3) {
text-align: center;
}

/* 讓第一欄（「比較項目」與底下的類別項目，如「適合旅客」等）全部置中 */
.compare-table th:nth-child(1),
.compare-table td:nth-child(1) {
  text-align: center;
}

/* 預設情況下：電腦版隱藏手機版專用卡片 */
.mobile-choose-list {
  display: none;
}

/* 平板響應式 (max-width: 860px) */
@media (max-width: 860px) {
  .brand-row,
  .cta-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .utility-nav,
  .site-nav-inner,
  .page-nav-inner {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .page-nav-inner::-webkit-scrollbar { display: none; }

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-left: 0;
  }

  .site-nav a:last-child { border-right: 0; }

  .hero,
  .hero-content { min-height: 480px; }

  .quick-grid,
  .tour-grid,
  .island-grid,
  .destination-grid,
  .season-grid,
  .link-grid,
  .faq {
    grid-template-columns: 1fr;
  }

  .quick-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-item:last-child { border-bottom: 0; }

  section { padding: 26px 0; }
}

/* 手機版響應式 (max-width: 560px) */
@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .brand img {
    width: 130px;
  }

  .brand-row {
    min-height: 0;
    padding: 16px 0;
  }

  .utility-nav,
  .site-nav-inner,
  .page-nav-inner {
    gap: 8px 6px;
  }

  .page-nav {
    position: static;
  }

  /* 主視覺微調 */
  .hero-content {
    padding-top: 20px !important;
    padding-bottom: 160px !important;
    transform: none !important; 
    text-align: center;
  }

  h1, .hero-lead {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 85% !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px !important;
  }

  .hero-actions .button {
    width: 85% !important; 
    max-width: 280px !important;
    padding: 10px 15px !important;
  }
	
/* 讓手機版主視覺圖片往左偏 */
  .hero-media img {
    object-position: left center !important; /* 您也可以改成精準的數值，例如 20% center */
  }	

  /* LINE 按鈕自適應 */
  .cta .button.line {
    width: auto !important;
    max-width: 200px !important;
    padding: 8px 16px !important;
    font-size: 18px !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    margin-top: 10px;
  }

  /* 隱藏電腦版表格，顯示手機版上下滑動卡片 */
  .compare-table {
    display: none !important;
  }

  .mobile-choose-list {
    display: grid;
    gap: 20px;
  }

  .mobile-choose-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }

  .mobile-choose-card h3 {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 700; /* 確保手機版標題為粗體 */
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue-light);
    padding-bottom: 8px;
  }

  .choose-item {
    margin-bottom: 12px;
  }

  .choose-item:last-child {
    margin-bottom: 0;
  }

  .choose-item strong {
    display: block;
    font-size: 20px;
    color: var(--brand-red);
    margin-bottom: 2px;
  }

  .choose-item p {
    margin: 0;
    font-size: 18px;
	font-weight: 400; /* 設定內文文字為正常字重 (非粗體) */
    color: var(--muted);
    line-height: 1.5;
  }
	
/* 設定「探索更多詳情」為藍色字體 */
.card-content a.btn-more {
  color: #007bff !important;
  font-weight: 400;
  display: inline-block;
  margin-top: 12px;
}

.card-content a.btn-more:hover {
  text-decoration: underline;
}
}