/* ══════════════════════════════════════════════════════════
   company.css — 關於裕誠金融頁面專屬樣式
   所有字級引用 style.css 的 --fs-* token
   ══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── 頁面 Hero ────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #0A1F3C 0%, #162247 100%);
  padding: 140px 40px 72px;
  text-align: center;
  color: white;
}
.page-hero h1 {
  font-size: var(--fs-3xl);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.25;
}
.page-hero p {
  font-size: var(--fs-md);
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}
.page-hero .section-label {
  display: inline-block;
  margin-bottom: 16px;
}

/* ── 公司介紹 ─────────────────────────────────────────── */
.company-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.company-intro-text p {
  font-size: var(--fs-sm);
  color: var(--text2);
  line-height: 2;
  margin-bottom: 18px;
}
.company-intro-text p:last-child { margin-bottom: 0; }

.company-points {
  list-style: none;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.company-points li {
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-xs);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.company-points li:last-child { margin-bottom: 0; }
.company-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ── 統計 ─────────────────────────────────────────────── */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.company-stat {
  text-align: center;
  padding: 32px 16px;
}
.company-stat .val {
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
  /* 「1,200+」這類長數字在 2 欄手機版會超出欄寬 */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
/* 手機版 2 欄時縮小數字級距，避免撐破欄寬 */
@media (max-width: 560px) {
  .company-stat .val {
    font-size: var(--fs-2xl);
    letter-spacing: -0.02em;
  }
}
.company-stat .lbl {
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* ── 誠信項目（首頁 + company.html 共用）───────────────── */
.trust-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.trust-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: 10px;
}
.trust-desc {
  font-size: var(--fs-sm);
  color: var(--text2);
  margin-bottom: 36px;
  line-height: 1.8;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  transition: var(--transition);
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 104, 255, 0.12);
  border-color: var(--primary);
}
.trust-icon {
  font-size: var(--fs-2xl);
  margin-bottom: 14px;
  line-height: 1;
}
.trust-item h3 {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: 10px;
}
.trust-item p {
  font-size: var(--fs-xs);
  color: var(--text2);
  line-height: 1.75;
}

/* 深色區段的誠信項目 */
.section-dark .trust-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .trust-item h3 { color: white; }
.section-dark .trust-item p { color: rgba(255, 255, 255, 0.75); }

/* ── CTA ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0049CC 100%);
  text-align: center;
}
.company-cta h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: white;
  margin-bottom: 26px;
}
.company-cta .btn-primary {
  background: white;
  color: var(--primary);
  border: none;
  font-size: var(--fs-sm);
  font-weight: 800;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
}
.company-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

/* ── 手機版 ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-hero { padding: 110px 20px 52px; }
  .company-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .company-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .trust-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .trust-item { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .trust-items { grid-template-columns: minmax(0, 1fr); }
  .company-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trust-block { margin-top: 36px; padding-top: 32px; }
}
