/* ==========================================================
   LRD 網站樣式表  style.css（主樣式）
   ----------------------------------------------------------
   如何修改：
   1. 顏色、Logo 大小、頂欄高度：只需改最上面 :root { } 內的變數。
   2. 每個區塊以「====」橫幅分隔，可用 Ctrl+F 搜尋區塊名稱。
   3. 手機／平板的調整在檔案最底部的 @media 區塊。
   4. 內頁（產品及服務）及輪播、下拉選單的樣式在 extra.css。
   改完後無需重新生成頁面，儲存並上傳 css 檔後，按 Ctrl+F5 重新整理即可。
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');
/* ==========================================================
   1. 設計變數 Design Tokens
   顏色、尺寸集中在此，修改一處，全站同步。
   ========================================================== */

:root {
  --navy: #071426;   /* 深藍：Footer、深色區塊、按鈕底色 */
  --navy2: #0b1e38;   /* 深藍（較淺）：漸變用 */
  --blue: #2878e8;   /* 主色（藍）：連結、強調、按鈕懸停 */
  --cyan: #50d5ee;   /* 輔助色（青）：漸變、圖示 */
  --purple: #8175ff;   /* 輔助色（紫）：漸變 */
  --ink: #14243a;   /* 主要文字顏色 */
  --muted: #68788e;   /* 次要文字顏色（說明文字） */
  --line: #e5ebf2;   /* 分隔線、邊框顏色 */
  --pale: #f4f7fb;   /* 淺灰藍：交替區塊背景 */
  --white: #fff;   /* 白色 */
  --header-h: 112px;        /* 頂欄（Top Bar）高度 */
  --logo-h: 88px;           /* 頂欄 Logo 高度（原 44px 放大一倍） */
  --footer-logo-h: 56px;    /* Footer Logo 高度 */
  --container: 1180px;   /* 內容最大寬度 */
}

/* ==========================================================
   2. 基本重設 Base
   全站預設字體、連結、容器寬度。
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);   /* 錨點跳轉時預留頂欄高度 */
}

body {
  margin: 0;
  font-family: "DM Sans","Noto Sans TC","Noto Sans SC",sans-serif;   /* 字體：英文 DM Sans，繁/簡中文 Noto Sans */
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container),calc(100% - 48px));
  margin: auto;
}

/* ==========================================================
   3. 頂欄與導航 Header & Navigation
   包括 Logo、主選單、語言切換、手機選單按鈕。
   ========================================================== */

.site-header {
  height: var(--header-h);   /* 頂欄高度：在 :root 內修改 --header-h */
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,229,239,.8);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: var(--logo-h);   /* 頂欄 Logo 高度：在 :root 內修改 --logo-h */
  width: auto;             /* 寬度按比例自動計算 */
  object-fit: contain;
}

.brand-name {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .03em;
  color: #15263d;
}

.brand-name small {
  font-size: 10px;
  color: #7a899b;
  font-weight: 500;
}

/* --- 主選單 --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #40516a;
}

.main-nav>a {
  transition: .2s;
}

.main-nav>a:hover {
  color: var(--blue);
}

.main-nav .nav-contact {
  background: var(--navy);
  color: white;
  padding: 11px 19px;
  border-radius: 4px;
}

.main-nav .nav-contact:hover {
  background: var(--blue);
  color: white;
}

/* --- 語言切換 (繁/简/EN) --- */
.language-switch {
  display: flex;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #75849a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px;
  cursor: pointer;
  border-radius: 3px;
}

.lang-btn.active,
.lang-btn:hover {
  background: #eaf2ff;
  color: #1766d0;
}

/* --- 手機版漢堡選單按鈕 --- */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--navy);
  margin: 5px;
}

/* ==========================================================
   4. 首頁主視覺 Hero
   首頁最上方橫幅（輪播樣式另見 extra.css）。
   ========================================================== */

.hero {
  min-height: 650px;   /* 首頁橫幅高度（extra.css 內另有覆蓋值） */
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg,#071426 0%,#0b2342 55%,#102d54 100%);
  color: white;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg,rgba(5,17,33,.96) 0%,rgba(5,20,40,.82) 48%,rgba(5,20,40,.24) 100%),url("../assets/hero-placeholder.svg");
  background-position: center;
  background-size: cover;
  opacity: .95;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(108,164,224,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(108,164,224,.08) 1px,transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg,transparent,black 55%,black);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 65px;
  padding-bottom: 70px;
}

/* --- 小標題 Eyebrow／Section Kicker --- */
.eyebrow,
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  color: #5ca9ff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9acaff;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.hero h1 {
  font-size: clamp(42px,5.5vw,70px);
  line-height: 1.2;
  letter-spacing: -.045em;
  margin: 28px 0 22px;
  max-width: 720px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg,#fff,#8bdcff 70%,#9c9aff);
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #c0d0e3;
  max-width: 570px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 35px;
}

/* --- 按鈕 Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 21px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: .2s;
}

.btn-primary {
  background: linear-gradient(100deg,#2676e8,#4a8cf4);
  color: #fff;
  box-shadow: 0 10px 28px rgba(35,112,225,.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(35,112,225,.32);
}

.btn-ghost {
  border-color: rgba(211,229,250,.4);
  color: #e7f1ff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
}

/* --- 橫幅底部備註、裝飾圓環 --- */
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  color: #9db1c9;
  font-size: 11px;
  letter-spacing: .1em;
}

.note-line {
  width: 34px;
  height: 1px;
  background: #5b9de9;
}

.hero-index {
  position: absolute;
  right: 4%;
  bottom: 36px;
  color: #9db3cd;
  font-size: 11px;
  letter-spacing: .16em;
}

.hero-index span {
  color: #4c84c3;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(96,175,255,.17);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 510px;
  height: 510px;
  right: 8%;
  top: 8%;
  box-shadow: 0 0 80px rgba(50,129,224,.08),inset 0 0 70px rgba(50,129,224,.05);
}

.orbit-two {
  width: 350px;
  height: 350px;
  right: 14%;
  top: 20%;
  border-color: rgba(94,216,241,.2);
}

/* ==========================================================
   5. 通用區塊與「關於我們」 Sections & About
   ========================================================== */

.section-pad {
  padding: 105px 0;   /* 每個區塊上下留白（手機版另設） */
}

.intro-section {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: start;
}

.section-kicker {
  margin-bottom: 17px;
}

.intro-grid h2,
.section-heading h2,
.approach-copy h2,
.contact-copy h2 {
  font-size: clamp(32px,4vw,47px);
  line-height: 1.28;
  letter-spacing: -.04em;
  margin: 0;
  color: var(--ink);
}

.intro-grid h2 span,
.section-heading h2 span,
.approach-copy h2 span,
.contact-copy h2 span {
  color: #347de0;
}

.intro-copy {
  padding-top: 34px;
}

.intro-copy p,
.approach-copy>p,
.contact-copy>p {
  font-size: 15px;
  line-height: 2;
  color: #64748a;
  margin: 0 0 22px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: #236fd2;
}

.text-link b {
  margin-left: 9px;
}

/* --- 四項數據 Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 76px;
  border-top: 1px solid var(--line);
  padding-top: 27px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding-left: 26px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border: 0;
}

.stat strong {
  font-size: 25px;
  color: #1d5eaf;
  letter-spacing: -.04em;
}

.stat span {
  font-size: 12px;
  color: #7c8ba0;
}

/* ==========================================================
   6. 智慧方案 Solutions（六個項目卡片）
   背景圖樣式見 extra.css 的 .has-img。
   ========================================================== */

.solutions-section {
  background: #f4f7fb;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 43px;
}

.section-heading>p {
  max-width: 370px;
  color: #74839a;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 5px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
}

/* --- 方案卡片 --- */
.solution-card {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid #e7edf4;
  padding: 31px 31px 27px;
  min-height: 270px;
  transition: .25s;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: #c6dcf8;
  box-shadow: 0 18px 45px rgba(31,72,119,.08);
}

.card-large {
  background: linear-gradient(135deg,#0c2341,#123a68);
  color: #fff;
  border: 0;
}

.card-wide {
  grid-column: span 6;
  min-height: 230px;
}

.card-number {
  font-size: 10px;
  letter-spacing: .15em;
  color: #8ba0b8;
  font-weight: 700;
}

.card-large .card-number {
  color: #8bbcf2;
}

.card-icon {
  font-size: 27px;
  color: #3782e5;
  margin: 22px 0 8px;
}

.card-large .card-icon {
  color: #75c9ff;
}

.solution-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -.025em;
}

.solution-card p {
  font-size: 13px;
  color: #78879b;
  line-height: 1.85;
  max-width: 540px;
  margin: 0 0 21px;
}

.card-large p {
  color: #c1d0e2;
}

.card-link {
  font-size: 12px;
  font-weight: 700;
  color: #2875d6;
}

.card-large .card-link {
  color: #8dd8ff;
}

.card-link b {
  margin-left: 8px;
}

.card-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(64,154,255,.12);
  filter: blur(35px);
  right: -100px;
  bottom: -130px;
}

/* ==========================================================
   7. 我們的理念 Approach
   ========================================================== */

.approach-section {
  background: #091a30;
  color: #fff;
  overflow: hidden;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
}

.approach-visual {
  height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(83,160,236,.3);
  border-radius: 50%;
}

.ring-a {
  width: 330px;
  height: 330px;
}

.ring-b {
  width: 235px;
  height: 235px;
  border-color: rgba(97,217,239,.4);
  box-shadow: 0 0 65px rgba(49,155,220,.12);
}

.visual-core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(145deg,#1c65b5,#162e65);
  box-shadow: 0 0 55px rgba(55,142,239,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(136,203,255,.55);
}

.visual-core span {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .06em;
}

.visual-core small {
  font-size: 7px;
  letter-spacing: .1em;
  color: #a8d7ff;
}

.visual-node {
  position: absolute;
  background: #102d4d;
  border: 1px solid rgba(106,176,244,.45);
  padding: 8px 12px;
  color: #a8d6ff;
  font-size: 9px;
  letter-spacing: .13em;
  z-index: 3;
}

.node-a {
  top: 33px;
  left: 50%;
  transform: translateX(-50%);
}

.node-b {
  bottom: 55px;
  left: 5%;
}

.node-c {
  bottom: 55px;
  right: 2%;
}

.approach-copy .section-kicker {
  color: #65b8ff;
}

.approach-copy h2 {
  color: #fff;
}

.approach-copy h2 span {
  color: #7dc9ff;
}

.approach-copy>p {
  color: #aabbd0;
  margin-top: 22px;
}

.principles {
  margin-top: 28px;
  border-top: 1px solid rgba(187,211,237,.17);
}

.principles div {
  display: flex;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(187,211,237,.17);
  font-size: 13px;
  color: #d4e1ef;
}

.principles b {
  color: #62b9ff;
  font-size: 11px;
}

/* ==========================================================
   8. 聯絡我們 Contact
   左側聯絡資料、右側查詢表格。
   ========================================================== */

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10%;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy>p {
  max-width: 410px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 27px;
}

.detail-icon {
  width: 39px;
  height: 39px;
  background: #edf4ff;
  color: #2878dc;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.contact-detail div {
  display: flex;
  flex-direction: column;
}

.contact-detail small {
  font-size: 10px;
  color: #8997a9;
}

.contact-detail a,
.contact-detail div>span {
  font-size: 14px;
  font-weight: 600;
  color: #1b3454;
}

/* --- 查詢表格 Form --- */
.contact-form {
  background: #f6f8fb;
  padding: 34px;
  border: 1px solid #e8edf4;
}

.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-heading h3 {
  font-size: 21px;
  margin: 0;
}

.form-heading>span {
  font-size: 10px;
  color: #8794a5;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #465a73;
  margin-bottom: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input:not([type=checkbox]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dce4ed;
  background: #fff;
  padding: 12px 13px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  color: #263c58;
  outline: none;
  transition: .2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #438be4;
  box-shadow: 0 0 0 3px rgba(67,139,228,.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.consent {
  display: flex!important;
  flex-direction: row!important;
  align-items: flex-start;
  gap: 9px!important;
  font-weight: 400!important;
  color: #6c7b90!important;
}

.consent input {
  margin-top: 3px;
  accent-color: #2878e8;
}

.submit-btn {
  border: 0;
  min-width: 160px;
}

.form-status {
  font-size: 12px;
  margin: 12px 0 0;
  color: #167647;
}

.form-status.error {
  color: #bd3c3c;
}

.form-privacy {
  font-size: 10px;
  color: #929eac;
  line-height: 1.6;
  margin: 14px 0 0;
}

/* ==========================================================
   9. 頁尾 Footer
   Footer Logo 大小見 :root 的 --footer-logo-h。
   ========================================================== */

.site-footer {
  background: #071426;
  color: #aabbd0;
  padding: 34px 0 18px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(197,218,242,.15);
}

.footer-brand .brand-name {
  color: #e2edf9;
}

.footer-brand .brand-name small {
  color: #8196ae;
}

.footer-brand img {
  height: var(--footer-logo-h);   /* Footer 白色 Logo 高度：在 :root 內修改 --footer-logo-h */
  width: auto;
}

.footer-top>p {
  font-size: 11px;
  color: #8ea3bd;
}

.footer-top>a:last-child {
  font-size: 12px;
  color: #a9d3ff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 17px;
  font-size: 10px;
  color: #7489a2;
}

.footer-bottom a {
  color: #9fc8f3;
}

/* ==========================================================
   10. 響應式：平板 Responsive (≤900px)
   ========================================================== */

@media(max-width:900px) {
  :root {
    --header-h: 80px;   /* 平板版頂欄高度 */
    --logo-h: 56px;     /* 平板版 Logo 高度（預防導航列擠迫） */
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav>a {
    font-size: 11px;
  }
  .approach-grid {
    gap: 5%;
  }
  .contact-grid {
    gap: 5%;
  }
  .solution-card {
    padding: 25px;
  }
  .hero {
    min-height: 600px;
  }
}

/* ==========================================================
   11. 響應式：手機 Responsive (≤720px)
   手機版頂欄高度、Logo 大小在此區塊的 :root 內。
   ========================================================== */

@media(max-width:720px) {
  .container {
    width: min(100% - 36px,var(--container));
  }
  :root {
    --header-h: 92px;        /* 手機版頂欄高度 */
    --logo-h: 72px;          /* 手機版 Logo 高度 */
    --footer-logo-h: 46px;   /* 手機版 Footer Logo 高度 */
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);   /* 手機版選單緊貼頂欄下方 */
    left: 0;
    right: 0;
    background: white;
    padding: 18px 24px 24px;
    box-shadow: 0 15px 25px rgba(15,39,69,.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav>a {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    font-size: 13px;
  }
  .main-nav .nav-contact {
    margin-top: 12px;
    text-align: center;
    padding: 12px;
  }
  .language-switch {
    border: 0;
    padding: 15px 0 0;
  }
  .hero {
    min-height: 620px;
  }
  .hero-bg {
    background-image: linear-gradient(90deg,rgba(5,17,33,.96),rgba(5,20,40,.75)),url("../assets/hero-placeholder.svg");
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-note {
    margin-top: 48px;
  }
  .orbit-one {
    right: -270px;
  }
  .orbit-two {
    right: -180px;
  }
  .section-pad {
    padding: 75px 0;
  }
  .intro-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .intro-copy {
    padding-top: 0;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    margin-top: 48px;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat:nth-child(3) {
    padding-left: 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading>p {
    margin-top: 18px;
  }
  .solution-card,
  .card-wide {
    grid-column: span 6;
    min-height: 240px;
  }
  .approach-visual {
    height: 330px;
    order: 2;
  }
  .approach-copy {
    order: 1;
  }
  .ring-a {
    width: 285px;
    height: 285px;
  }
  .ring-b {
    width: 205px;
    height: 205px;
  }
  .contact-form {
    padding: 23px 18px;
  }
  .footer-top {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
  .footer-top>p {
    margin: 0;
  }
  .footer-bottom {
    gap: 15px;
    flex-direction: column;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
