/**
 * 全速科技官方網站 - 內頁共用樣式
 * @version 2.0.0
 * @date 2026-01-15
 *
 * 此檔案僅包含所有內頁共用的基礎樣式
 * 頁面專用樣式請寫在各自頁面的 <style> 區塊
 */

/* ============================================
   CSS Variables (CSS 變數)
   ============================================ */
:root {
  --page-title-size: 3.5rem;
  --page-title-size-md: 2.5rem;
  --page-title-size-sm: 2rem;
}

/* ============================================
   Page Banner (內頁頂部橫幅)
   ============================================ */
.page-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--site-blue-color);
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 66, 137, 0.85) 0%,
    rgba(0, 66, 137, 0.6) 50%,
    rgba(0, 66, 137, 0.4) 100%
  );
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-banner-content {
  max-width: 100%;
}

.page-banner h1 {
  font-size: var(--page-title-size);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

/* ============================================
   Page Content (內頁主要內容區)
   ============================================ */
.page-content {
  padding: 70px 0;
  background: #fff;
}

.page-content.bg-light {
  background: var(--bg-light);
}

.page-content.bg-blue {
  background: var(--site-blue-color);
  color: #fff;
}

/* ============================================
   Content Block (內容區塊)
   ============================================ */
.content-block {
  margin-bottom: 60px;
}

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

.content-block h2 {
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--site-blue-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.content-block h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--site-yellow-color);
  border-radius: 2px;
}

.content-block h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.content-block p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-color);
  margin-bottom: 20px;
}

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

/* ============================================
   Breadcrumb (麵包屑導航)
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  display: none;
}

.breadcrumb a {
  transition: var(--transition);
}

.breadcrumb span,
.breadcrumb a {
  color: var(--site-blue-color);
}

.breadcrumb a:hover {
  color: var(--site-yellow-color);
}

.breadcrumb .separator {
  color: #fff;
}

.breadcrumb .material-icons-outlined {
  font-size: 1.125rem;
}

/* ============================================
   服務優勢卡片（共用）adv-card
   各頁面自行定義 .adv-grid 欄位數
   ============================================ */
.adv-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 2px 14px rgba(0, 66, 138, 0.08);
  border-top: 4px solid var(--site-yellow-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 66, 138, 0.16);
}
.adv-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adv-card-icon {
  font-size: 1.8rem;
  color: var(--site-blue-color);
  flex-shrink: 0;
}
.adv-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-blue-color);
  margin: 0;
  line-height: 1.4;
}
.adv-card-desc {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0;
}

/* ============================================
   Responsive Design (響應式設計)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --page-title-size: var(--page-title-size-md);
  }

  .page-banner {
    min-height: 380px;
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-title-size: var(--page-title-size-sm);
  }

  .page-banner {
    min-height: 320px;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .page-content {
    padding: 60px 0;
    padding-top: 80px !important;
  }
}
