/* ================================
   覺知之旅 x Joanna
   Backup Site - Global Styles
   ================================ */


/* ---------- 基本重設 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f3f1;
  color: #1f1f1f;
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    Arial,
    sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ---------- 整體頁面 ---------- */

.page-wrapper {
  width: 100%;
  min-height: 100vh;
}


/* ---------- Header ---------- */

.site-header {
  padding: 34px 24px 0;
}

.header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 26px;

  background: #ffffff;
  border-radius: 999px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-nav a {
  font-size: 0.95rem;
  color: #3d3d3d;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.header-nav a:hover {
  color: #317597;
}


/* ---------- Hero ---------- */

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 0;
}

.hero-content {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  margin: 0;

  color: #317597;

  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.015em;
}

.hero-text {
  margin: 26px auto 0;
  max-width: 720px;

  color: #555555;

  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.9;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;

  width: min(960px, 100%);
  margin: 0 auto -110px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 26px;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.10);
}


/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  padding: 165px 24px 48px;

  background:
    linear-gradient(
      135deg,
      #203d7b 0%,
      #317597 15%,
      #40A1A9 100%
    );

  color: #ffffff;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;

  margin-bottom: 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  opacity: 0.88;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.social-links img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.copyright {
  margin: 0;

  font-size: 0.82rem;
  opacity: 0.68;
}


/* ---------- 平板 ---------- */

@media (max-width: 800px) {

  .site-header {
    padding: 22px 18px 0;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .header-nav {
    gap: 18px;
  }

  .hero {
    width: min(100% - 36px, 1180px);
    padding-top: 70px;
  }

  .hero-content {
    margin-bottom: 38px;
  }

  .hero-image-wrapper {
    margin-bottom: -75px;
  }

  .hero-image {
    border-radius: 20px;
  }

  .site-footer {
    padding-top: 125px;
  }

}


/* ---------- 手機 ---------- */

@media (max-width: 560px) {

  .site-header {
    padding: 14px 14px 0;
  }

  .header-inner {
    border-radius: 24px;

    padding: 15px 18px;

    flex-direction: column;
    gap: 10px;
  }

  .brand-logo {
    height: 30px;
  }

  .header-nav {
    gap: 20px;
  }

  .header-nav a {
    font-size: 0.88rem;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .hero-text {
    margin-top: 20px;

    font-size: 0.98rem;
    line-height: 1.8;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-image-wrapper {
    margin-bottom: -50px;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .site-footer {
    padding:
      94px
      20px
      34px;
  }

  .social-links {
    gap: 20px;
    margin-bottom: 22px;
  }

}
/* =================================
   通用內容頁
   ================================= */


/* ---------- 頁面整體 ---------- */

.content-page {
  padding: 80px 24px 100px;
}

.content-container {
  width: min(820px, 100%);
  margin: 0 auto;
}


/* ---------- 頁首資訊 ---------- */

.content-header {
  text-align: center;
  margin-bottom: 42px;
}

.content-category {
  margin: 0 0 14px;

  color: #317597;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.content-header h1 {
  margin: 0;

  color: #203d7b;

  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.3;
}

.content-date {
  margin: 18px 0 0;

  color: #888888;

  font-size: 0.9rem;
}


/* ---------- 主圖 ---------- */

.content-cover {
  margin-bottom: 50px;
}

.content-cover img {
  width: 100%;

  border-radius: 22px;

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08);
}


/* ---------- 正文 ---------- */

.content-body {
  color: #333333;

  font-size: 1.05rem;
  line-height: 1.9;
}

.content-body p {
  margin: 0 0 1.6em;
}

.content-body h2 {
  margin: 2.4em 0 0.8em;

  color: #203d7b;

  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.5;
}

.content-body h3 {
  margin: 0 0 14px;

  color: #203d7b;

  font-size: 1.1rem;
  font-weight: 600;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1.8em;
  padding-left: 1.5em;
}

.content-body li {
  margin-bottom: 0.55em;
}


/* ---------- 資訊框 ---------- */

.info-box {
  margin: 42px 0;

  padding: 26px 30px;

  background: #ffffff;

  border-left: 5px solid #317597;
  border-radius: 14px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-box p {
  margin: 0.45em 0;
}


/* ---------- CTA ---------- */

.content-cta {
  margin-top: 46px;

  text-align: center;
}

.button-primary {
  display: inline-block;

  padding: 12px 28px;

  background: #317597;
  color: #ffffff;

  border-radius: 999px;

  font-size: 1rem;
  font-weight: 500;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* ---------- 手機 ---------- */

@media (max-width: 560px) {

  .content-page {
    padding:
      56px
      18px
      72px;
  }

  .content-header {
    margin-bottom: 32px;
  }

  .content-cover {
    margin-bottom: 36px;
  }

  .content-cover img {
    border-radius: 16px;
  }

  .content-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .info-box {
    padding: 22px 20px;
  }

}