/* ==========================================================
   LRD 網站樣式表  extra.css（補充樣式）
   ----------------------------------------------------------
   載入順序在 style.css 之後，同一選擇器以本檔為準。
   內容：首頁輪播、下拉選單、產品及服務內頁、
         數字教育藍圖區塊、產品列表、背景圖卡片。
   顏色變數（--blue 等）在 style.css 的 :root 內修改。
   ========================================================== */

/* ==========================================================
   A. 首頁輪播橫幅 Rolling Banner
   圖片及文字由後台「圖片 / 影片」管理。
   ========================================================== */

.hero {
  min-height: 680px;   /* 輪播橫幅高度 */
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s,visibility .8s;
}

.slide.on {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg {
  background-image: linear-gradient(90deg,rgba(5,17,33,.96) 0%,rgba(5,20,40,.82) 48%,rgba(5,20,40,.24) 100%),var(--img);
}

.hero h1,
.hero h2.hero-title {
  font-size: clamp(38px,5.2vw,66px);
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 28px 0 22px;
  max-width: 720px;
  font-weight: 700;
}

/* --- 左右箭嘴 --- */
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(7,20,38,.45);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.hero-nav.prev {
  left: 14px;
}

.hero-nav.next {
  right: 14px;
}

/* --- 底部圓點 --- */
.dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #9acaff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot.on {
  background: #50d5ee;
  border-color: #50d5ee;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* ==========================================================
   B. 產品及服務下拉選單 Dropdown
   ========================================================== */

.has-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.has-sub>a:hover {
  color: var(--blue);
}

.sub-toggle {
  background: none;
  border: 0;
  color: #40516a;
  cursor: pointer;
  padding: 4px;
}

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15,39,69,.12);
  padding: 8px 0;
  z-index: 60;
}

.has-sub:hover .sub,
.has-sub.open .sub {
  display: block;
}

.sub a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
}

.sub a:hover {
  background: #eaf2ff;
  color: var(--blue);
}

/* --- 語言按鈕連結樣式 --- */
a.lang-btn {
  display: inline-block;
}

/* ==========================================================
   C. 內頁頂部圖片列 Image Bar
   每個產品及服務頁頂部約 100px 的圖片／影片。
   ========================================================== */

.page-bar {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: #071426;
  color: #fff;
}

.bar-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-in {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 700;
  color: #cfe6ff;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ==========================================================
   D. 產品及服務內頁 Service Pages
   標題、主要功能、圖表、FAQ、CTA。
   ========================================================== */

.svc {
  padding-top: 48px;
}

.svc h1 {
  font-size: clamp(30px,4vw,44px);
  margin: 10px 0 14px;
  letter-spacing: -.03em;
}

.svc h2 {
  font-size: 22px;
  margin: 46px 0 18px;
}

.svc-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #53657c;
  max-width: 760px;
}

.crumb {
  font-size: 12px;
  color: #8190a3;
}

.crumb a:hover {
  color: var(--blue);
}

/* --- 主要功能卡片 --- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 16px;
}

.feat {
  background: #f4f7fb;
  border: 1px solid #e7edf4;
  padding: 24px;
}

.feat b {
  color: #3782e5;
  font-size: 12px;
}

.feat h3 {
  margin: 8px 0;
  font-size: 18px;
}

.feat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6b7b90;
}

/* --- 學習成效指標（橫條圖） --- */
.chart {
  background: #f4f7fb;
  border: 1px solid #e7edf4;
  padding: 24px;
}

.bar {
  display: grid;
  grid-template-columns: 150px 1fr 48px;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
}

.bar-t {
  height: 12px;
  background: #dfe8f3;
  border-radius: 6px;
  overflow: hidden;
}

.bar-t i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#2878e8,#50d5ee);
  border-radius: 6px;
}

.bar-v {
  font-weight: 700;
  color: #1d5eaf;
  text-align: right;
}

/* --- 常見問題 FAQ --- */
.faq {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 10px 0 0;
  color: #64748a;
  font-size: 14px;
  line-height: 1.9;
}

/* --- 頁底行動呼籲 CTA --- */
.svc-cta {
  margin-top: 56px;
  background: linear-gradient(135deg,#0c2341,#123a68);
  color: #fff;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.svc-cta h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.svc-cta p {
  margin: 0;
  color: #b9cde3;
}

/* ==========================================================
   E. Footer 服務連結列
   ========================================================== */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 18px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(197,218,242,.15);
}

.footer-links b {
  color: #e2edf9;
}

.footer-links a:hover {
  color: #fff;
}

/* ==========================================================
   F. 手機版補充 Mobile (≤720px)
   ========================================================== */

@media(max-width:720px) {
  .hero {
    min-height: 760px;
  }
  .hero-nav {
    display: none;
  }
  .sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }
  .has-sub {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .has-sub>a {
    flex: 1;
    padding: 12px 0;
  }
  .has-sub .sub {
    width: 100%;
  }
  .bar {
    grid-template-columns: 100px 1fr 44px;
  }
}

/* ==========================================================
   G. 減少動態效果（無障礙設定）
   ========================================================== */

@media(prefers-reduced-motion:reduce) {
  .slide {
    transition: none;
  }
}

/* ==========================================================
   H. 首頁六個項目背景圖 Card Background
   在後台上傳背景圖後，卡片自動加上 .has-img。
   深色遮罩濃度可改 .card-bg::after 的 rgba 數值。
   ========================================================== */

.solution-card.has-img {
  color: #fff;
  border: 0;
}

.solution-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.solution-card .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(7,20,38,.86),rgba(12,35,65,.55));
}

.solution-card.has-img>*:not(.card-bg) {
  position: relative;
  z-index: 1;
}

.solution-card.has-img .card-glow {
  display: none;
}

.solution-card.has-img .card-number {
  color: #9fd0ff;
}

.solution-card.has-img .card-icon {
  color: #75c9ff;
}

.solution-card.has-img p {
  color: #dbe7f5;
}

.solution-card.has-img .card-link {
  color: #8dd8ff;
}

/* ==========================================================
   I. 內頁圖片／影片 (1920×1080, 16:9)
   位置：主要功能與產品列表之間。
   ========================================================== */

.svc-media {
  margin: 46px 0 0;
  aspect-ratio: 16/9;
  background: #071426;
  overflow: hidden;
}

.svc-media img,
.svc-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 聯絡電話／WhatsApp 連結顏色 --- */
.contact-detail a[href^="tel:"],
.contact-detail a[href*="wa.me"] {
  color: inherit;
}

/* ==========================================================
   J. 產品列表 Product Cards
   圖片比例 4:3，建議 1200×900。
   ========================================================== */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 18px;
}

.prod {
  background: #fff;
  border: 1px solid #e7edf4;
  overflow: hidden;
  transition: .25s;
}

.prod:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31,72,119,.1);
}

.prod-img {
  aspect-ratio: 4/3;
  background: #e8eef6;
  overflow: hidden;
}

.prod-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-body {
  padding: 20px 22px 24px;
}

.prod-body b {
  color: #3782e5;
  font-size: 12px;
}

.prod-body h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.prod-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6b7b90;
}

/* ==========================================================
   K. 數字教育藍圖區塊（首頁 #blueprint）
   對應教育局《中小學數字教育發展藍圖》。文字在後台修改（bp 開頭欄位）。
   ========================================================== */

.bp-section {
  background: #fff;
}

.bp-sub {
  margin: 46px 0 18px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #236fd2;
}

/* --- 藍圖四大重點 --- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 18px;
}

.bp-item {
  background: var(--pale);
  border-top: 3px solid var(--blue);
  padding: 22px;
}

.bp-item b {
  color: var(--blue);
  font-size: 12px;
}

.bp-item h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.bp-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

/* --- 五大服務範疇卡片 --- */
.bp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 16px;
}

.bp-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: .25s;
}

.bp-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(31,72,119,.1);
}

.bp-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.bp-card h3 {
  margin: 0;
  font-size: 19px;
}

.bp-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* --- 標籤（服務範疇，首頁及內頁共用） --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1766d0;
}

/* --- 實施路徑 Steps（首頁及內頁共用） --- */
.bp-steps,
.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 18px;
}

.bp-steps li,
.support-list li {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
}

.bp-steps b,
.support-list b {
  color: var(--blue);
  font-size: 12px;
}

.bp-steps h4,
.support-list h3 {
  margin: 4px 0 6px;
  font-size: 16px;
}

.bp-steps p,
.support-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.bp-note {
  margin: 40px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #7a899b;
}

.bp-note a {
  color: var(--blue);
}

/* ==========================================================
   L. 內頁：政策對應／使用情境／實施與支援
   align-sec = 與數字教育發展的關係；scene-sec = 使用情境；support-sec = 實施與支援。
   ========================================================== */

.align-sec,
.scene-sec,
.support-sec {
  margin-top: 8px;
}

.align-box {
  background: var(--pale);
  border-left: 4px solid var(--blue);
  padding: 26px 30px;
}

.align-box p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 2;
  color: #3b4d66;
}

.align-scope small {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #236fd2;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 18px;
}

.scene {
  background: #fff;
  border: 1px solid #e7edf4;
  border-top: 3px solid var(--cyan);
  padding: 22px;
}

.scene h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.scene p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
