/* ============================================================
   footer-v2.css — 全站頁尾(main.master <footer>）v2 改版專用
   - 獨立元件,所有 class 加 iv2-foot 前綴,scope 在 .iv2-foot 內
   - 風格:淺色頁尾(off-white 漸層底 + 深字 + 紫→琥珀漸層頂線 + 微光氛圍),與白色導覽列同調
   - 分班據點以可點擊地圖卡片呈現;字體沿用 iv2 設計系統 Noto Sans TC
   - em 為主(scope 內 font-size 為 em 基準）;標點:程式半形、文案全形
   - 覆蓋 style.css 既有 footer/footer p/footer a 標籤選擇器(以 .iv2-foot 提高 specificity）
   - 2026-05-23 建立;同日改為淺色主題
   ============================================================ */

.iv2-foot{
  --iv2-primary:#5645d4;
  --iv2-primary-soft:#6b5dd6;
  --iv2-accent-red:#ff385c;
  --iv2-accent-amber:#f5d75e;
  --iv2-hairline:#e5e3df;
  --iv2-surface:#ffffff;
  --iv2-surface-hover:#f6f5f4;
  --iv2-text:#1a1a1a;
  --iv2-text-soft:#5d5b54;
  --iv2-text-dim:#787671;
  --iv2-font:'Noto Sans TC','Noto Sans Traditional Chinese','Microsoft JhengHei',PingFangTC,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  position:relative;
  margin-top:0;
  padding:0;                              /* 覆蓋 style.css padding-top:60px */
  font-family:var(--iv2-font);
  font-size:16px;                         /* em 基準 */
  line-height:1.6;
  color:var(--iv2-text);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(86,69,212,.06), transparent 55%),
    radial-gradient(90% 70% at 92% 8%, rgba(245,215,94,.10), transparent 50%),
    linear-gradient(180deg, #fafaf9 0%, #f3f2f0 100%);
  border-top:1px solid var(--iv2-hairline);
  overflow:hidden;
  isolation:isolate;
}
.iv2-foot *{box-sizing:border-box;}
.iv2-foot a{text-decoration:none;color:inherit;}
.iv2-foot svg{display:block;}
.iv2-foot ul{list-style:none;margin:0;padding:0;}
.iv2-foot p,.iv2-foot h4{margin:0;color:inherit;}

/* 頂部 紫→琥珀 漸層細線 */
.iv2-foot::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;z-index:2;
  background:linear-gradient(90deg,var(--iv2-primary) 0%,#9a6bff 38%,var(--iv2-accent-red) 70%,var(--iv2-accent-amber) 100%);
  opacity:.95;
}
/* 細點陣紋理氛圍(極淡） */
.iv2-foot::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:radial-gradient(rgba(15,23,48,.045) 1px,transparent 1px);
  background-size:22px 22px;mask-image:linear-gradient(180deg,rgba(0,0,0,.45),transparent 60%);
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.45),transparent 60%);
}

.iv2-foot-inner{
  position:relative;z-index:1;
  width:80%;max-width:1320px;margin-inline:auto;
  padding-block:4.25em 0;
}

/* ============================================================
   上半：品牌 + 三欄資訊
   ============================================================ */
.iv2-foot-top{
  display:grid;grid-template-columns:1.5fr 2.2fr;gap:3em 2.5em;
  padding-bottom:3em;border-bottom:1px solid var(--iv2-hairline);
}

/* 品牌區 */
.iv2-foot-brand{max-width:24em;min-width:0;}
/* 頁尾 LOGO(logos.svg,無襯底片、無白底;淺底上原色清楚) */
.iv2-foot-logo{display:inline-block;}
.iv2-foot-logo img{width:auto;height:40px!important;max-width:100%;display:block;}
.iv2-foot-tagline{
  margin-top:1em;font-size:.9375em;color:var(--iv2-text-soft);letter-spacing:.01em;
}
.iv2-foot-cta{display:flex;gap:.75em;margin-top:1.5em;flex-wrap:wrap;}
.iv2-foot-btn{
  display:inline-flex;align-items:center;gap:.5em;height:2.875em;padding:0 1.25em;
  border-radius:999px;font-size:.9375em;font-weight:600;line-height:1;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease;
}
.iv2-foot-btn svg{width:1.125em;height:1.125em;}
.iv2-foot-btn-line{
  background:#06c755;color:#fff;box-shadow:0 8px 20px -8px rgba(6,199,85,.5);
}
.iv2-foot-btn-line:hover{color:#fff;transform:translateY(-2px);box-shadow:0 12px 26px -8px rgba(6,199,85,.65);}
.iv2-foot-btn-join{
  background:#fff;color:var(--iv2-text);border:1px solid var(--iv2-hairline);
}
.iv2-foot-btn-join:hover{color:var(--iv2-primary);transform:translateY(-2px);border-color:var(--iv2-primary);background:var(--iv2-surface-hover);}

/* 三欄資訊 */
.iv2-foot-cols{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.75em;min-width:0;
}
.iv2-foot-col{min-width:0;}   /* 允許 grid track 收縮,長 email 才能換行不溢出 */
/* 用 .iv2-foot 前綴提高 specificity,壓過上面 `.iv2-foot h4{margin:0}` 的重置(否則 margin-bottom 失效) */
.iv2-foot .iv2-foot-col-title{
  display:flex;align-items:center;gap:.5em;
  font-size:.9375em;font-weight:700;letter-spacing:.1em;
  color:var(--iv2-text);margin-bottom:1.5em;
}
.iv2-foot-col-title::before{
  content:"";width:1.4em;height:2px;border-radius:2px;flex-shrink:0;
  background:linear-gradient(90deg,var(--iv2-primary),var(--iv2-accent-amber));
}
.iv2-foot-col li{margin-bottom:.95em;font-size:1.0625em;color:var(--iv2-text);font-weight:500;}
.iv2-foot-col li:last-child{margin-bottom:0;}
.iv2-foot-line{display:flex;align-items:flex-start;gap:.6em;}
.iv2-foot-line svg{width:1.2em;height:1.2em;color:var(--iv2-primary-soft);flex-shrink:0;margin-top:.2em;}
.iv2-foot-line > span{min-width:0;overflow-wrap:anywhere;font-weight:600;}   /* 長 email 在窄欄可換行不溢出 */
.iv2-foot-line-label{display:block;font-size:.82em;color:var(--iv2-text-dim);margin-bottom:.18em;font-weight:600;}
.iv2-foot-link{position:relative;color:var(--iv2-text-soft);font-weight:600;transition:color .16s ease;}
.iv2-foot-link::after{
  content:"";position:absolute;left:0;right:100%;bottom:-2px;height:1px;
  background:var(--iv2-primary);transition:right .25s cubic-bezier(.16,1,.3,1);
}
.iv2-foot-link:hover{color:var(--iv2-primary);}
.iv2-foot-link:hover::after{right:0;}

/* ============================================================
   分班據點 卡片
   ============================================================ */
.iv2-foot-branches{padding-block:2.75em;}
.iv2-foot-branches .iv2-foot-col-title{font-size:.8125em;margin-bottom:1.25em;}
.iv2-foot-branch-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:1em;
}
.iv2-foot-branch{
  display:flex;flex-direction:column;gap:.55em;
  padding:1.15em 1.15em 1.25em;border-radius:16px;
  background:var(--iv2-surface);border:1px solid var(--iv2-hairline);
  box-shadow:0 1px 2px rgba(15,23,48,.04);
  transition:transform .2s cubic-bezier(.16,1,.3,1),background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.iv2-foot-branch:hover{
  transform:translateY(-4px);background:#fff;
  border-color:rgba(86,69,212,.4);box-shadow:0 16px 34px -18px rgba(15,23,48,.25);
}
.iv2-foot-branch-name{
  display:flex;align-items:center;gap:.5em;
  font-size:1.0625em;font-weight:700;color:var(--iv2-text);letter-spacing:.02em;
}
.iv2-foot-branch-name::before{
  content:"";width:.5em;height:.5em;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--iv2-primary),var(--iv2-accent-amber));
  box-shadow:0 0 0 3px rgba(86,69,212,.14);
}
.iv2-foot-branch-row{
  display:flex;align-items:flex-start;gap:.55em;
  font-size:.875em;color:var(--iv2-text-soft);line-height:1.5;transition:color .16s ease;
}
.iv2-foot-branch-row svg{width:1.05em;height:1.05em;color:var(--iv2-primary-soft);flex-shrink:0;margin-top:.2em;transition:color .16s ease;}
.iv2-foot-branch-row:hover{color:var(--iv2-text);}
.iv2-foot-branch-row:hover svg{color:var(--iv2-primary);}

/* ============================================================
   版權列
   ============================================================ */
.iv2-foot-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:1.25em;flex-wrap:wrap;
  padding-block:1.75em 2em;border-top:1px solid var(--iv2-hairline);
}
.iv2-foot-copy{font-size:.8125em;color:var(--iv2-text-soft);}
.iv2-foot-copy b{color:var(--iv2-text);font-weight:600;}
.iv2-foot-note{font-size:.75em;color:var(--iv2-text-dim);max-width:46em;line-height:1.7;}

/* ============================================================
   RWD
   ============================================================ */
@media (max-width:1024px){
  .iv2-foot-inner{width:90%;}
  .iv2-foot-top{grid-template-columns:1fr;gap:2.5em;}
  .iv2-foot-branch-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:720px){
  .iv2-foot-cols{grid-template-columns:repeat(2,1fr);gap:1.5em 1.25em;}
  .iv2-foot-branch-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .iv2-foot-inner{width:100%;padding-inline:18px;padding-block:3em 0;}
  .iv2-foot-bottom{flex-direction:column;align-items:flex-start;gap:.75em;}
}
@media (max-width:430px){
  .iv2-foot-branch-grid{grid-template-columns:1fr;}
}
