/* =========================
   基礎設定
========================= */

html,
body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, "Noto Sans TC", "Noto Sans JP", sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.8;
}


/* =========================
   全站頁首 / 導覽
========================= */

.site-header {
  width: 100%;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-title {
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
}

.site-nav a:hover {
  text-decoration: underline;
}


/* =========================
   頁面主體
========================= */

.page-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 120px;
}


/* =========================
   首頁大標題區
========================= */

.hero {
  text-align: center;
  margin: 0 auto 260px;
  padding-top: 24px;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 14px;

  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;

  border-bottom: 12px solid #000000;
}

.hero p {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 18px;
}


/* =========================
   滿版首頁標題
========================= */

.hero-full {
  width: 100%;
  min-height: calc(100vh - 74px);
  padding: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #ffffff;
  text-align: center;
}

.hero-full h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 14px;

  color: #000000;
  font-size: 55pt;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;

  border-bottom: 12px solid #000000;
}

/* =========================
   對話區
========================= */

.chat-section {
  width: 100%;
  margin: 0 auto;
}

.chat-row {
  display: flex;
  width: 100%;
  margin: 12px 0;
}

.chat-row.me {
  justify-content: flex-start;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 72%;
  padding: 12px 18px;

  border-radius: 14px;
  line-height: 1.65;
  font-size: 16px;

  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.chat-bubble.me {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-top-left-radius: 5px;
}

.chat-bubble.user {
  background: #f5f6f7;
  color: #000000;
  border: 1px solid #d8dce0;
  border-top-right-radius: 5px;
}


/* =========================
   文字強調
========================= */

.red {
  color: #ff0000;
  font-weight: 700;
}

.bold {
  font-weight: 700;
}


/* =========================
   一般頁面標題
========================= */

.page-title {
  text-align: center;
  margin: 48px auto 72px;
}

.page-title h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 12px;

  color: #000000;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;

  border-bottom: 10px solid #000000;
}


/* =========================
   用戶回饋 Lightbox
========================= */

.ks-feedback-thumb {
  position: relative;
  display: block;
  width: min(180px, 48vw);
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #f2f2f2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.ks-feedback-thumb-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(0,0,0,.08)),
    repeating-linear-gradient(0deg, #f8f8f8 0 8px, #eeeeee 8px 16px);
  filter: blur(3px);
  transform: scale(1.06);
}

.ks-feedback-thumb-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .42);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.ks-feedback-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.ks-feedback-lightbox.is-open {
  display: block;
}

.ks-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ks-feedback-viewer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 52px 48px;
}

.ks-feedback-card {
  width: min(760px, 100%);
  max-height: min(76vh, 820px);
  overflow-y: auto;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
  line-height: 1.8;
}

.ks-feedback-card h2 {
  margin: 0 0 20px;
  font-size: clamp(20px, 4.8vw, 34px);
  line-height: 1.35;
  letter-spacing: .02em;
}

.ks-feedback-card p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: clamp(15px, 3.8vw, 21px);
}

.ks-feedback-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

.ks-feedback-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  color: #111111;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .20);
}

.ks-feedback-arrow-left {
  left: 10px;
}

.ks-feedback-arrow-right {
  right: 10px;
}

.ks-feedback-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, .42);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  letter-spacing: .04em;
}

@media (max-width: 700px) {
  .page-title {
    margin: 36px auto 52px;
  }

  .page-title h1 {
    font-size: 36px;
    border-bottom-width: 8px;
  }
}

@media (max-width: 520px) {
  .ks-feedback-viewer {
    padding: 64px 18px 54px;
  }

  .ks-feedback-card {
    max-height: 74vh;
    border-radius: 6px;
  }

  .ks-feedback-arrow {
    top: auto;
    bottom: 8px;
    transform: none;
    width: 46px;
    height: 42px;
    font-size: 34px;
    border-radius: 999px;
  }

  .ks-feedback-arrow-left {
    left: 18px;
  }

  .ks-feedback-arrow-right {
    right: 18px;
  }
}

/* =========================
   按鈕
========================= */

.button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;

  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
}

.button:hover {
  opacity: 0.82;
}

/* =========================
   特規：作品圖片連結
   用於 about.html 的作品展示。
   圖片標準尺寸：寬 368px，高 172px。
   螢幕足夠時維持原大小；空間不足時等比例縮小。
========================= */

.work-image-bubble {
  text-align: center;
  white-space: normal;
  padding: 14px 18px;
}

.work-image-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}

.work-image-link img {
  display: block;
  width: 368px;
  max-width: 100%;
  height: auto;
}

.work-image-link:hover {
  opacity: 0.86;
}

/* =========================
   服務選項卡
========================= */

.service-choice {
  width: 300px;
  max-width: 100%;
  text-align: center;
}

.service-choice .button {
  min-width: 104px;
  text-align: center;
}

/* =========================
   文章連結列表
   用於「文章分享」頁面。
   取代原本以圖片呈現的文章分類與連結，
   保留上下分隔線、大字分類、藍色文章連結的視覺感。
========================= */

.article-link-section {
  width: 100%;
  margin: 48px auto;
  padding: 0 0;

  border-top: 3px solid #333333;
  border-bottom: 3px solid #333333;
}

/* 單一文章分類區塊 */
.article-link-group {
  padding: 48px 0;
}

/* 分類之間的細分隔線 */
.article-link-group + .article-link-group {
  border-top: 1px solid #dddddd;
}

/* 文章分類標題，例如：商務洽談、新手相關 */
.article-link-group h2 {
  margin: 0 0 28px;

  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.35;
}

/* 單篇文章連結 */
.article-link {
  display: inline-block;

  color: #0000ee;
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.7;
  text-decoration: underline;
}

/* 滑過文章連結時，稍微降低透明度 */
.article-link:hover {
  opacity: 0.75;
}

/* =========================
   頁尾
========================= */

.site-footer {
  border-top: 1px solid #eeeeee;
  padding: 28px 24px;
  text-align: center;
  color: #666666;
  font-size: 14px;
}


/* =========================
   手機版
========================= */

@media (max-width: 700px) {
  .site-header {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-title {
    font-size: 20px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 15px;
  }

  .page-content {
    padding: 36px 16px 96px;
  }

  .hero {
    margin-bottom: 160px;
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 38px;
    border-bottom-width: 8px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-full {
    min-height: calc(100svh - 74px);
    padding: 20px 16px;
  }

  .hero-full h1 {
    margin: 0;
    font-size: clamp(38px, 12vw, 55pt);
    border-bottom-width: 8px;
  }

  .chat-bubble {
    max-width: 86%;
    font-size: 15px;
    padding: 11px 15px;
  }
}