/* ============================================================
   聽風出海科技有限公司 / Listen Wind Global Technology Limited
   統一樣式表 common.css
   主色調：航海深藍 + 藍青漸層 + 暖橙點綴
   ============================================================ */

:root {
  --c-navy: #0a1f44;
  --c-navy-deep: #061428;
  --c-blue: #1565ff;
  --c-cyan: #00b4ff;
  --c-accent: #ff7a18;
  --c-accent-soft: #ffb84d;
  --c-light: #f5f8fc;
  --c-gray: #6b7a90;
  --c-border: #e2e9f3;
  --grad-brand: linear-gradient(120deg, #0a1f44 0%, #1565ff 55%, #00b4ff 100%);
  --grad-accent: linear-gradient(120deg, #ff7a18 0%, #ffb84d 100%);
  --shadow-sm: 0 4px 16px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 10px 34px rgba(10, 31, 68, 0.14);
  --shadow-lg: 0 22px 60px rgba(10, 31, 68, 0.22);
  --radius: 16px;
}

* { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: #1c2b3a;
  background: #ffffff;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--c-navy); letter-spacing: .5px; }
a { text-decoration: none; }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 導航列 ---------- */
.lw-navbar {
  background: rgba(10, 31, 68, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  padding: .55rem 0;
}
.lw-navbar .navbar-brand { display: flex; align-items: center; gap: .6rem; }
.lw-logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad-accent);
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 6px 16px rgba(255,122,24,.4);
}
.lw-logo:has(img) { background: none; box-shadow: none; }
.lw-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.lw-brand-text { line-height: 1.15; }
.lw-brand-text b { color: #fff; font-size: 1.05rem; display: block; }
.lw-brand-text small { color: var(--c-cyan); font-size: .7rem; letter-spacing: 1px; }
.lw-navbar .nav-link {
  color: #cdd9ec !important; font-weight: 500; margin: 0 .35rem;
  position: relative; padding: .5rem .7rem !important; transition: color .25s;
}
.lw-navbar .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  background: var(--c-accent); transition: all .28s; transform: translateX(-50%);
}
.lw-navbar .nav-link:hover { color: #fff !important; }
.lw-navbar .nav-link:hover::after,
.lw-navbar .nav-link.active::after { width: 60%; }
.lw-navbar .nav-link.active { color: #fff !important; }
.lw-navbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
.lw-navbar .navbar-toggler:focus { box-shadow: none; }
.lw-btn-nav {
  background: var(--grad-accent); color: #fff; border: none; border-radius: 30px;
  padding: .45rem 1.2rem; font-weight: 600; box-shadow: 0 6px 16px rgba(255,122,24,.35);
}
.lw-btn-nav:hover { color: #fff; filter: brightness(1.05); }

/* ---------- 按鈕 ---------- */
.btn-brand {
  background: var(--grad-brand); color: #fff; border: none; border-radius: 30px;
  padding: .7rem 1.8rem; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.btn-brand:hover { color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--grad-accent); color: #fff; border: none; border-radius: 30px;
  padding: .7rem 1.8rem; font-weight: 600; box-shadow: 0 6px 18px rgba(255,122,24,.35);
}
.btn-accent:hover { color:#fff; filter: brightness(1.05); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 30px; padding: .7rem 1.8rem; font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--c-navy-deep); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .42;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,20,40,.94) 0%, rgba(10,31,68,.78) 45%, rgba(21,101,255,.45) 100%);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-content { position: relative; z-index: 3; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.2; }
.hero .lead { color: #d6e3f5; font-size: 1.15rem; max-width: 620px; }
.hero .badge-pill {
  display: inline-block; background: rgba(255,122,24,.18); color: var(--c-accent-soft);
  border: 1px solid rgba(255,122,24,.4); padding: .35rem 1rem; border-radius: 30px;
  font-size: .82rem; letter-spacing: 1px; margin-bottom: 1.1rem;
}
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .num span { color: var(--c-accent-soft); }
.hero-stats .lbl { font-size: .85rem; color: #aebfdb; }

/* ---------- 通用區塊 ---------- */
.section { padding: 5.5rem 0; }
.section-light { background: var(--c-light); }
.section-dark {
  background: var(--c-navy); color: #fff;
  background-image: radial-gradient(circle at 20% 20%, rgba(21,101,255,.25), transparent 40%),
                    radial-gradient(circle at 85% 70%, rgba(0,180,255,.2), transparent 45%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  color: var(--c-accent); font-weight: 700; letter-spacing: 2px; font-size: .85rem;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .6rem 0; }
.section-head p { color: var(--c-gray); }

/* ---------- 卡片 ---------- */
.lw-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem 1.6rem; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.lw-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--c-cyan); }
.lw-card .ic {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; color: #fff; margin-bottom: 1.1rem; background: var(--grad-brand);
  box-shadow: 0 10px 22px rgba(21,101,255,.3);
}
.lw-card.accent .ic { background: var(--grad-accent); box-shadow: 0 10px 22px rgba(255,122,24,.3); }
.lw-card h4 { font-size: 1.25rem; margin-bottom: .6rem; }
.lw-card p { color: var(--c-gray); font-size: .95rem; }

/* 圖片卡片 */
.img-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.img-card:hover img { transform: scale(1.08); }
.img-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem;
  background: linear-gradient(transparent, rgba(6,20,40,.9)); color: #fff;
}
.img-card .cap h4 { color: #fff; margin: 0; }

/* 平台徽章 */
.platform-badge {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.platform-badge:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.platform-badge .pf-ic {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem; display: grid;
  place-items: center; color: #fff; font-size: 26px;
}
.pf-twitter { background: #1d9bf0; }
.pf-youtube { background: #ff0000; }
.pf-fb { background: #1877f2; }
.pf-google { background: #ea4335; }

/* 步驟流程 */
.step-row { display: flex; gap: 0; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 180px; text-align: center; position: relative; padding: 0 1rem; }
.step-item .step-num {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 1rem; display: grid;
  place-items: center; font-weight: 800; color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-sm);
}
.step-item:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; right: -50%; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-cyan) 0 8px, transparent 8px 16px);
}
@media (max-width: 768px){ .step-item::after { display: none; } }

/* 數據統計 */
.stat-box { text-align: center; padding: 1.5rem; }
.stat-box .big { font-size: 2.8rem; font-weight: 800; color: #fff; }
.stat-box .big span { color: var(--c-accent-soft); }
.stat-box .t { color: #b9c8e2; font-size: .95rem; }

/* 夥伴 logo 牆 */
.partner-wall { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: center; }
.partner-wall .pl {
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: .8rem 1.2rem;
  width: 170px; height: 90px; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.partner-wall .pl img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.partner-wall .pl:hover img { filter: none; opacity: 1; }

/* ---------- 表單 ---------- */
.lw-form .form-control, .lw-form .form-select {
  border-radius: 12px; padding: .8rem 1rem; border: 1.5px solid var(--c-border);
  background: #fbfdff;
}
.lw-form .form-control:focus, .lw-form .form-select:focus {
  border-color: var(--c-cyan); box-shadow: 0 0 0 .2rem rgba(0,180,255,.15);
}
.lw-form label { font-weight: 600; color: var(--c-navy); margin-bottom: .35rem; }

.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-info-item .ci-ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 20px;
}

/* ---------- 自定義提示框 (Toast) ---------- */
.lw-toast-wrap {
  position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex;
  flex-direction: column; gap: 12px; pointer-events: none;
}
.lw-toast {
  min-width: 300px; max-width: 380px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border-left: 5px solid var(--c-blue);
  padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start;
  transform: translateX(120%); opacity: 0; transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.lw-toast.show { transform: translateX(0); opacity: 1; }
.lw-toast.success { border-left-color: #21bf73; }
.lw-toast.error { border-left-color: #e8413a; }
.lw-toast .lt-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-size: 20px;
}
.lw-toast.success .lt-ic { background: #21bf73; }
.lw-toast.error .lt-ic { background: #e8413a; }
.lw-toast.info .lt-ic { background: var(--c-blue); }
.lw-toast .lt-body b { display: block; color: var(--c-navy); font-size: 1rem; }
.lw-toast .lt-body span { color: var(--c-gray); font-size: .9rem; }

/* ---------- Modal 提示框 (成功回饋) ---------- */
.lw-modal-mask {
  position: fixed; inset: 0; background: rgba(6,20,40,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 9998; padding: 1rem;
}
.lw-modal-mask.show { display: flex; }
.lw-modal-box {
  background: #fff; border-radius: 20px; max-width: 440px; width: 100%; padding: 2.4rem 2rem;
  text-align: center; box-shadow: var(--shadow-lg); transform: scale(.85); opacity: 0;
  transition: all .3s ease;
}
.lw-modal-mask.show .lw-modal-box { transform: scale(1); opacity: 1; }
.lw-modal-ring {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, #21bf73, #00b4ff); display: grid; place-items: center;
  color: #fff; font-size: 44px; box-shadow: 0 12px 30px rgba(33,191,115,.4);
  animation: pop .4s ease;
}
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.lw-modal-box h3 { margin-bottom: .5rem; }
.lw-modal-box p { color: var(--c-gray); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.lw-footer { background: var(--c-navy-deep); color: #b9c8e2; padding: 3.5rem 0 1.5rem; }
.lw-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.lw-footer a { color: #b9c8e2; transition: color .2s; }
.lw-footer a:hover { color: var(--c-accent-soft); }
.lw-footer .f-link li { list-style: none; margin-bottom: .55rem; }
.lw-footer ul { padding-left: 0; }
.lw-footer .f-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.lw-footer .f-contact i { color: var(--c-accent-soft); margin-top: 4px; }
.lw-footer .f-social a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: inline-grid; place-items: center; margin-right: .5rem; transition: .25s;
}
.lw-footer .f-social a:hover { background: var(--c-accent); color: #fff; transform: translateY(-3px); }
.lw-footer .f-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.4rem;
  font-size: .85rem; color: #7e90b0; text-align: center;
}

.spin { animation: lwspin 1s linear infinite; display: inline-block; }
@keyframes lwspin { to { transform: rotate(360deg); } }

/* ---------- 回到頂部 ---------- */
#lwTopBtn {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-brand); color: #fff; border: none; display: none; place-items: center;
  font-size: 20px; z-index: 999; box-shadow: var(--shadow-md); cursor: pointer;
}
#lwTopBtn.show { display: grid; }

/* ---------- 頁面橫幅 ---------- */
.page-banner {
  position: relative; padding: 7rem 0 4rem; background: var(--c-navy-deep); color: #fff; overflow: hidden;
}
.page-banner .pb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; }
.page-banner .pb-ov { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,20,40,.95), rgba(21,101,255,.5)); }
.page-banner .pb-in { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); }
.page-banner .breadcrumb { background: none; padding: 0; margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #b9c8e2; }
.page-banner .breadcrumb-item.active { color: var(--c-accent-soft); }

/* 內容圖文 */
.feature-row { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; margin-bottom: 3.5rem; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row .f-img { flex: 1 1 420px; }
.feature-row .f-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.feature-row .f-txt { flex: 1 1 380px; }
.feature-row .f-txt h3 { margin-bottom: .8rem; }
.feature-row .f-txt p { color: var(--c-gray); }
.flist { list-style: none; padding: 0; margin: 1rem 0 0; }
.flist li { padding: .4rem 0 .4rem 1.8rem; position: relative; color: #34465c; }
.flist li::before { content: "\f00c"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--c-accent); }

/* 時間軸 */
.timeline { border-left: 3px solid var(--c-border); padding-left: 1.8rem; }
.timeline .tl-item { position: relative; margin-bottom: 2rem; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -2.32rem; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(255,122,24,.25);
}
.timeline .tl-item .yr { color: var(--c-blue); font-weight: 700; }
