/* ===== 臺北建投｜哈投设计 · 輕量手寫響應式樣式（無外部框架） ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #FFC0CB;
  --pink-deep: #F1929F;
  --pink-dark: #D46876;
  --bg: #FBF6F7;
  --card: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #8A8A8A;
  --border: #F0DDE1;
  --danger: #D4515C;
  --shadow: 0 12px 32px rgba(229, 122, 137, 0.18);
}

html, body {
  height: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== 登入/註冊頁 ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  color: var(--pink-dark);
}

.brand-big5 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;
}

.brand-simp {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  white-space: nowrap;
  color: var(--pink-dark);
}

.brand-sep {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.5px;
  height: 26px;
  background: var(--pink);
  border-radius: 2px;
}

.brand-sub {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.panel {
  display: none;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 30px 26px;
  box-shadow: var(--shadow);
}

.panel.is-active {
  display: block;
}

.panel-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #FFFDFE;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(241, 146, 159, 0.18);
}

.btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(229, 122, 137, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(229, 122, 137, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  display: inline-block;
  width: auto;
  background: #fff;
  color: var(--pink-dark);
  border: 1.5px solid var(--pink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--pink);
  color: #fff;
}

.msg {
  min-height: 20px;
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--danger);
  display: none;
}

.msg.show {
  display: block;
}

.msg.ok {
  color: #3B9E6D;
}

.switch-tip {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.switch-tip a {
  color: var(--pink-dark);
  font-weight: 600;
}

.legal {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== 登入後首頁 ===== */
.home-page {
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--pink-dark);
}

.topbar-brand .brand-big5 {
  font-size: 17px;
  letter-spacing: 2px;
}

.topbar-brand .brand-simp {
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 700;
}

.topbar-brand .brand-sep {
  width: 1.2px;
  height: 14px;
  background: var(--pink);
}

.btn-small {
  padding: 7px 18px;
  font-size: 13px;
}

.home-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text);
}

.hero-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-desc strong {
  color: var(--pink-dark);
}

/* ===== 註冊實時檢驗 / 密碼可見 / 區號選擇 ===== */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 44px;
  width: 100%;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.pw-toggle:hover {
  background: rgba(241, 146, 159, 0.10);
}

.pw-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.pw-toggle:hover svg {
  stroke: var(--pink-dark);
}

.pw-toggle .eye-closed {
  display: none;
}

.pw-toggle.is-visible .eye-open {
  display: none;
}

.pw-toggle.is-visible .eye-closed {
  display: block;
}

.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field .phone-row select {
  flex: 0 0 auto;
  width: auto;
  max-width: 150px;
  padding: 11px 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #FFFDFE;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field .phone-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.field .phone-row select:focus,
.field .phone-row input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(241, 146, 159, 0.18);
}

.field-msg {
  display: none;
  margin: 5px 0 0 2px;
  font-size: 12.5px;
  color: var(--danger);
}

.field-msg.show {
  display: block;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

.field.has-error input:focus,
.field.has-error select:focus {
  box-shadow: 0 0 0 3px rgba(212, 81, 92, 0.14);
}

/* ===== 響應式：手機 ===== */
@media (max-width: 480px) {
  .auth-wrap {
    padding: 24px 12px;
    justify-content: flex-start;
  }

  .brand-title {
    gap: 8px;
  }

  .brand-big5 {
    font-size: 26px;
  }

  .brand-simp {
    font-size: 21px;
  }

  .brand-sep {
    height: 20px;
  }

  .panel {
    max-width: 100%;
    padding: 24px 18px 20px;
    border-radius: 12px;
  }

  .field input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 18px;
  }

  .hero-title {
    font-size: 24px;
  }
}

/* ===== 記住我 / 協議勾選 / 模態框 ===== */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.check-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1.5px solid var(--pink-deep);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.check-input:checked {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-color: var(--pink-deep);
}

.check-input:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(241, 146, 159, 0.28);
  outline: none;
}

.legal-checks {
  margin: 2px 0 4px;
}

.legal-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.legal-check-row .check-input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.legal-link {
  color: var(--pink-dark);
  font-weight: 600;
  border-bottom: 1px dashed var(--pink-deep);
  cursor: pointer;
}

.legal-link:hover {
  color: var(--pink-deep);
  border-bottom-style: solid;
}

.legal-error {
  color: var(--danger);
}

/* ===== 模態框（粉色主題） ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(43, 43, 43, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: modalFade 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 620px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--pink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: modalPop 0.22s ease;
}

@keyframes modalPop {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.modal-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px 24px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}

.modal-body h4 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: var(--pink-dark);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 8px;
}

.modal-body .modal-intro {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.modal-body ol {
  margin: 4px 0 10px 22px;
}

.modal-body ol li {
  margin-bottom: 4px;
}

/* 手機：模態框貼邊 */
@media (max-width: 480px) {
  .modal {
    max-height: 86vh;
    border-radius: 12px;
  }

  .modal-body {
    padding: 16px 16px 20px;
  }
}

/* ===== 登入頁背景輪播 + 語言切換 ===== */
body.login-page {
  background: #181b2a;
}

.login-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.login-slider .slide.is-active {
  opacity: 1;
}

.login-slider .slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 34, 0.58), rgba(15, 18, 34, 0.42));
}

.auth-wrap {
  position: relative;
  z-index: 1;
}

/* 深色背景上品牌/腳註文字提亮 */
body.login-page .brand-title,
body.login-page .brand-big5,
body.login-page .brand-simp {
  color: #fff;
}

body.login-page .brand-sub {
  color: rgba(255, 255, 255, 0.82);
}

body.login-page .legal {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== 右上角 CH/EN 切換 ===== */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink);
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.lang-opt {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-opt.is-active {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
}

.lang-sep {
  flex: 0 0 auto;
  width: 1.5px;
  height: 16px;
  background: var(--pink);
  border-radius: 1px;
}

/* 英文模式下品牌標語字號縮放以容納長文本 */
body[data-lang="en"] .brand-big5 {
  font-size: 25px;
  letter-spacing: 1px;
  white-space: normal;
  line-height: 1.25;
}

body[data-lang="en"] .brand-simp {
  font-size: 20px;
  letter-spacing: 2px;
  white-space: nowrap;
}

body[data-lang="en"] .brand-sub {
  letter-spacing: 1px;
}

/* ===== 協議雙語正文 ===== */
.doc-zh,
.doc-en {
  display: block;
}

.doc-en {
  display: none;
}

body[data-lang="en"] .doc-zh {
  display: none;
}

body[data-lang="en"] .doc-en {
  display: block;
}

@media (max-width: 480px) {
  body[data-lang="en"] .brand-big5 {
    font-size: 19px;
  }

  body[data-lang="en"] .brand-simp {
    font-size: 16px;
  }

  .lang-switch {
    top: 10px;
    right: 10px;
  }
}

/* ===== 企業官網登入後主頁（深藍主題） ===== */
html {
  scroll-behavior: smooth;
}

body.site-home {
  background: #f4f6fb;
  color: #2b2f3a;
}

.site-home .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-home .site-brand .brand-big5 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  white-space: nowrap;
}

.site-home .site-brand .brand-simp {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffd7e0;
  white-space: nowrap;
}

.site-home .site-brand .brand-sep {
  width: 1.5px;
  height: 16px;
  background: var(--pink);
  border-radius: 2px;
}

/* ===== 深藍吸頂導航 ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #1B3A6B;
  box-shadow: 0 2px 14px rgba(16, 34, 64, 0.35);
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}

.site-menu a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.site-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-menu a.is-active {
  color: #ffffff;
  background: #2F5FA8;
  box-shadow: inset 0 -2px 0 var(--pink);
}

.btn-logout {
  margin-left: 12px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-logout:hover {
  background: #ffffff;
  color: #1B3A6B;
  border-color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 2px;
}

/* ===== 全寬輪播 ===== */
.hero-slider {
  position: relative;
  height: 76vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  margin-top: 68px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slider .slide.is-active {
  opacity: 1;
}

.hero-slider .slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 70, 0.62), rgba(20, 38, 70, 0.38) 50%, rgba(16, 30, 56, 0.7));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--pink);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin-top: 18px;
  max-width: 720px;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-welcome {
  margin-top: 26px;
  padding: 10px 22px;
  font-size: 15px;
  letter-spacing: 2px;
  color: #ffffff;
  background: rgba(16, 30, 56, 0.55);
  border: 1px solid var(--pink);
  border-radius: 50px;
  backdrop-filter: blur(3px);
}

.hero-welcome strong {
  color: var(--pink);
  font-weight: 800;
}

.slide-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(16, 30, 56, 0.5);
  border-left: 3px solid var(--pink);
  border-radius: 4px;
  backdrop-filter: blur(3px);
}

/* ===== 通用區塊 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head-left {
  text-align: left;
  margin-bottom: 0;
}

.section-kicker {
  font-size: 14px;
  letter-spacing: 5px;
  color: #2F5FA8;
  font-weight: 700;
}

.section-title {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #1B3A6B;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #1B3A6B, var(--pink));
}

.section-head-left .section-title::after {
  margin: 12px 0 0;
}

/* ===== 公司概況 ===== */
.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 1.3fr;
  gap: 32px;
  align-items: stretch;
}

.about-block {
  border-radius: 14px;
  padding: 34px 34px;
  border: 1px solid #e5eaf3;
  background: #f8fafe;
}

.about-main {
  border-top: 4px solid #1B3A6B;
}

.about-side {
  border-top: 4px solid var(--pink);
  background: #fdf7f9;
}

.about-name {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 800;
  color: #1B3A6B;
  margin-bottom: 16px;
}

.about-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: #1B3A6B;
  border-radius: 50px;
}

.about-tag-side {
  background: var(--pink-dark);
}

.about-block p {
  font-size: 15px;
  line-height: 2.05;
  color: #4a4f5c;
  text-align: justify;
  margin-bottom: 12px;
}

.about-block p:last-child {
  margin-bottom: 0;
}

/* ===== 董事長致辭 ===== */
.chairman {
  margin-top: 36px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 38px 40px;
  background: linear-gradient(120deg, #1B3A6B, #29558f);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(27, 58, 107, 0.28);
}

.chairman-body {
  flex: 1 1 auto;
  min-width: 0;
}

.chairman-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--pink);
  margin-bottom: 12px;
}

.chairman-quote {
  font-size: 16px;
  line-height: 2.05;
  color: rgba(255, 255, 255, 0.95);
}

.chairman-sign {
  margin-top: 16px;
  text-align: right;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== 了解我們（點擊跳轉個人主頁） ===== */
.chairman-link {
  display: block;
  position: relative;
  margin-top: 36px;
  border-radius: 14px;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chairman-link .chairman {
  margin-top: 0;
}

.chairman-link:hover,
.chairman-link:focus-visible {
  transform: translateY(-4px);
}

.chairman-link:hover .chairman,
.chairman-link:focus-visible .chairman {
  box-shadow: 0 24px 46px rgba(27, 58, 107, 0.45);
}

.chairman-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1B3A6B;
  background: var(--pink);
  border-radius: 999px;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.chairman-link:hover .chairman-badge,
.chairman-link:focus-visible .chairman-badge {
  transform: scale(1.08);
  opacity: 1;
}

.chairman-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1B3A6B;
  background: var(--pink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chairman-link:hover .chairman-cta,
.chairman-link:focus-visible .chairman-cta {
  background: #ffffff;
  color: #1B3A6B;
  transform: translateX(3px);
}

/* ===== 主營業務六宮格 ===== */
.business {
  background: #f4f6fb;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.biz-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: #ffffff;
  background: #1B3A6B;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(27, 58, 107, 0.28);
}

.biz-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 0;
  transition: transform 0.4s ease;
}

.biz-card:hover .biz-img {
  transform: scale(1.06);
}

.biz-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 35, 66, 0.1), rgba(14, 30, 58, 0.88));
}

.biz-name,
.biz-desc,
.biz-mark {
  position: relative;
  z-index: 2;
}

.biz-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.biz-desc {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.biz-mark {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1B3A6B;
  background: #ffffff;
  border-radius: 50px;
}

.biz-mark-side {
  color: #ffffff;
  background: var(--pink-dark);
}

/* ===== 新聞中心 ===== */
.news {
  background: #ffffff;
}

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.news-more {
  font-size: 14px;
  color: #C0392B;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.news-more:hover {
  color: #1B3A6B;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 34px;
}

.news-col-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1B3A6B;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #1B3A6B;
  display: inline-block;
}

.news-col-title-side {
  color: var(--pink-dark);
  border-bottom-color: var(--pink);
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 12px;
  border-bottom: 1px dashed #e4e9f2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.news-item:hover {
  background: #f4f7fc;
  transform: translateX(5px);
  box-shadow: 0 8px 18px rgba(27, 58, 107, 0.1);
}

.news-date {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #2F5FA8;
  background: #edf2fb;
  border-radius: 6px;
  white-space: nowrap;
}

.news-link {
  font-size: 15px;
  color: #333846;
  line-height: 1.6;
}

.news-item:hover .news-link {
  color: #1B3A6B;
}

.news-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #8a93a5;
  padding: 12px 14px;
  border-left: 3px solid var(--pink);
  background: #fdf7f9;
  border-radius: 4px;
}

/* ===== 企業文化 ===== */
.culture {
  background: #f4f6fb;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.culture-card {
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(27, 58, 107, 0.14);
}

.culture-icon {
  font-size: 36px;
}

.culture-card h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1B3A6B;
}

.culture-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: #6b7280;
}

/* ===== 黑色頁腳 ===== */
.site-footer {
  background: #0d1424;
  color: #c7cedd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-col h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 8px;
  color: #b6bfd1;
}

.footer-desc {
  font-size: 13px;
  color: #8d97a9;
}

.footer-col-links a {
  display: block;
  font-size: 14px;
  line-height: 2.3;
  color: #b6bfd1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col-links a:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.copyright {
  font-size: 13.5px;
  letter-spacing: 1px;
  color: #98a2b6;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  font-size: 13.5px;
  color: #c7cedd;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--pink);
}

/* ===== 頁腳協議彈窗微調（首面為主，彈窗沿用既有 .modal 樣式） ===== */
.site-home .modal-title {
  color: #ffffff;
}

/* ===== 響應式 ===== */
@media (max-width: 1024px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-nav-inner {
    height: 60px;
  }

  .hero-slider {
    margin-top: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px 18px 20px;
    background: #1B3A6B;
    box-shadow: 0 14px 30px rgba(16, 34, 64, 0.35);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    width: 100%;
    padding: 12px 14px;
  }

  .btn-logout {
    width: 100%;
    margin: 8px 0 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .hero-slider {
    height: 70vh;
    min-height: 440px;
  }

  .slide-caption {
    display: none;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 24px 30px;
  }

  .chairman {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
  }

  .chairman-sign {
    text-align: center;
  }
}
