/* =========================================================
   創新無限 3D PRO TECHS — 共用樣式表 style.css
   由原本內嵌樣式規格化整併而成
   ========================================================= */

/* ---------- 基礎 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #ff6a1a;
  --accent-hover: #ff8a4a;
  --bg: #0d0f12;
  --bg-panel: #15181c;
  --bg-footer: #0a0c0e;
  --bg-card: #1c2025;
  --line: #23262b;
  --line-light: #ececec;
  --text: #c7ccd2;
  --text-dim: #9aa0a8;
  --text-mute: #767b83;
  --dark: #1c1c1c;
  --wrap: 1240px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 版面容器 ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.bg-dark  { background: var(--bg); color: #fff; }
.bg-panel { background: var(--bg-panel); color: #fff; }
.bg-light { background: #fff; color: var(--dark); }

.eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 2px;
  font-size: 14px; margin-bottom: 10px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: 32px; font-weight: 900; margin: 0; }
.section-head p { color: var(--text-mute); font-size: 15px; max-width: 600px; margin: 16px auto 0; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; border-radius: 6px; padding: 14px 28px; font-size: 15px;
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- 頁首 / 導覽 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; gap: 20px;
}
/* 桌機顯示右上角 CTA、隱藏選單內 CTA */
.header-cta { display: inline-block; }
.nav-cta { display: none; }
.brand { font-size: 22px; font-weight: 900; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand:hover { color: #fff; }

.nav { display: flex; gap: 24px; align-items: center; flex-wrap: nowrap; }
.nav > a, .nav .menu-label {
  color: #fff; font-size: 15px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.nav > a:hover, .nav .menu-label:hover { color: var(--accent); }
.nav a.active, .nav .has-dropdown.active .menu-label { color: var(--accent); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px; min-width: 230px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 8px 12px; color: var(--text);
  font-size: 14px; border-radius: 6px;
}
.dropdown a:hover { background: rgba(255, 106, 26, .12); color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 26px; cursor: pointer; line-height: 1;
}
#nav-check { display: none; }

/* ---------- 首頁 Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center; padding: 100px 0 80px;
}
.hero h1 { font-size: 44px; line-height: 1.35; font-weight: 900; margin: 0 0 24px; }
.lead { font-size: 16px; line-height: 1.9; color: #b7bcc4; max-width: 560px; margin: 0 0 32px; }
.media { width: 100%; border-radius: 8px; object-fit: cover; }

/* ---------- 三大支柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 20px 0 90px; }
.pillar { border-top: 2px solid var(--accent); padding-top: 20px; }
.pillar h3 { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.pillar p { color: var(--text-dim); font-size: 14px; line-height: 1.9; margin: 0; }

/* ---------- 優勢 / 數據 ---------- */
.advantage { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.big-num { font-size: 64px; font-weight: 900; color: var(--accent); }
.advantage h2 { font-size: 32px; font-weight: 900; margin: 0 0 20px; line-height: 1.4; }
.advantage .lead { color: var(--text-dim); font-size: 15px; max-width: 640px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.feature-grid h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-grid p { color: var(--text-dim); font-size: 14px; line-height: 1.8; margin: 0; }

/* ---------- 服務卡片 ---------- */
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.svc-card { border: 1px solid var(--line-light); border-radius: 10px; overflow: hidden; background: #fff; }
.svc-card img { height: 200px; width: 100%; object-fit: cover; }
.svc-card .body { padding: 22px; }
.svc-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.svc-card h3 a { color: var(--dark); }
.svc-card h3 a:hover { color: var(--accent); }
.svc-card p { color: var(--text-mute); font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.svc-card .more { font-size: 13px; font-weight: 700; }

/* ---------- 兩欄圖文（列印機等） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: 30px; font-weight: 900; margin: 0 0 18px; line-height: 1.4; }
.split p { color: var(--text-dim); font-size: 15px; line-height: 1.9; margin: 0 0 24px; }
.spec-list { color: var(--text); font-size: 14px; line-height: 2.2; margin: 0 0 28px; padding-left: 20px; }
.caption { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.split .media { height: 340px; border-radius: 10px; }

/* ---------- 作品彙整 ---------- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.proj-card img { height: 320px; width: 100%; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.proj-card h3 { font-size: 16px; font-weight: 700; margin: 0; }
.proj-card h3 a { color: var(--dark); }
.proj-card.on-dark h3 a { color: #fff; }
.proj-card h3 a:hover { color: var(--accent); }

/* ---------- 精選作品 ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.work-card img { height: 260px; width: 100%; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.work-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.work-card p { color: var(--text-dim); font-size: 13px; line-height: 1.8; margin: 0 0 6px; }
.work-card p.tag { color: var(--accent); }

/* ---------- 數據列 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .n { font-size: 40px; font-weight: 900; color: var(--accent); }
.stat .l { color: var(--text-mute); font-size: 14px; margin-top: 6px; }

/* ---------- QR ---------- */
.qr-block { text-align: center; }
.qr-block h2 { font-size: 22px; font-weight: 900; margin: 0 0 24px; }
.qr-block img { width: 180px; height: 180px; margin: 0 auto; border-radius: 8px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 20px; }
.faq-item { background: var(--bg-card); border-radius: 8px; padding: 24px 28px; }
.faq-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.faq-item p { color: var(--text-dim); font-size: 14px; line-height: 1.8; margin: 0; }

/* ---------- 底部 CTA ---------- */
.cta { position: relative; padding: 120px 32px; text-align: center; overflow: hidden; }
.cta .bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.cta .inner {
  position: relative; z-index: 1; background: rgba(13, 15, 18, .72);
  padding: 60px 40px; border-radius: 12px; max-width: 640px; margin: 0 auto;
}
.cta h2 { font-size: 30px; font-weight: 900; margin: 0 0 28px; }

/* ---------- 內頁（服務/作品） ---------- */
.breadcrumb { padding: 24px 0 0; color: var(--text-mute); font-size: 13px; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--accent); }

.page-layout {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 56px; padding: 32px 0 100px;
}
.article h1 { font-size: 32px; font-weight: 900; margin: 0 0 24px; }
.article h2 { font-size: 22px; font-weight: 900; margin: 40px 0 16px; }
.article h2:first-of-type { margin-top: 0; }
.article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.article p { color: var(--text); font-size: 15px; line-height: 2; margin: 0 0 20px; }
.article ul { color: var(--text); font-size: 14px; line-height: 2.2; margin: 0 0 40px; padding-left: 20px; }
.article .hero-full { height: 360px; width: 100%; object-fit: cover; border-radius: 10px; margin: 0 0 32px; }

.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 40px; }
.highlight { border-top: 2px solid var(--accent); padding-top: 16px; }
.highlight h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.highlight p { color: var(--text-dim); font-size: 13px; line-height: 1.8; margin: 0; }

.gallery-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
.gallery-4 img { height: 180px; width: 100%; object-fit: cover; border-radius: 8px; }
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.gallery-3 img { height: 180px; width: 100%; object-fit: cover; border-radius: 8px; }

/* 作品集大圖 */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio img { height: 280px; width: 100%; object-fit: cover; border-radius: 10px; }
.banner-img { height: 280px; width: 100%; object-fit: cover; border-radius: 10px; margin: 0 0 32px; }
.intro { max-width: 900px; }

/* 側欄 */
.sidebar-box { background: var(--bg-panel); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.sidebar-box h4 { font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 12px; }
.sidebar-links a { color: var(--text); font-size: 14px; }
.sidebar-links a.active, .sidebar-links a:hover { color: var(--accent); }
.sidebar-box.qr { text-align: center; }
.sidebar-box.qr img { width: 100%; height: 180px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; background: #fff; }
.sidebar-box.qr p { color: var(--text-dim); font-size: 13px; margin: 0; }

/* ---------- 聯絡頁 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 22px; font-weight: 900; margin: 0 0 12px; }
.contact-info .lead { color: var(--text); font-size: 15px; line-height: 1.9; margin: 0 0 40px; }
.contact-block { margin-bottom: 28px; }
.contact-block h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--accent); }
.contact-block p { color: var(--text); font-size: 15px; margin: 0; }
.contact-qr { width: 220px; height: 220px; border-radius: 8px; margin-bottom: 24px; background: #fff; object-fit: contain; }
.map-box { border-radius: 10px; overflow: hidden; }
.map-box iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--bg-footer); padding: 70px 32px 32px; border-top: 1px solid var(--line); }
.footer-cols {
  max-width: var(--wrap); margin: 0 auto 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
.footer-cols .brand-name { font-size: 20px; font-weight: 900; margin-bottom: 16px; }
.footer-cols p { color: var(--text-mute); font-size: 13px; line-height: 1.9; margin: 0 0 16px; }
.footer-cols p:last-child { margin-bottom: 0; }
.footer-cols h4 { font-size: 15px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { color: var(--text-dim); font-size: 13px; line-height: 2; }
.copyright {
  max-width: var(--wrap); margin: 0 auto; border-top: 1px solid var(--line);
  padding-top: 24px; text-align: center; color: #5a5f66; font-size: 12px;
}

/* 通用 section 間距 */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }

/* ---------- 右側浮動 LINE 按鈕 ---------- */
.line-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  height: 56px; padding: 0 22px; border-radius: 30px;
  background: #06c755; color: #fff;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.line-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.line-float svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.line-float span { font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- Lightbox 燈箱 ---------- */
.zoomable { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  opacity: 0; visibility: hidden; transition: opacity .22s;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-overlay img { max-width: 95%; max-height: 92%; border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, .6); }
.lb-close {
  position: absolute; top: 18px; right: 26px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 30px; line-height: 44px; text-align: center; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .25); }

/* =========================================================
   響應式
   ========================================================= */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .advantage { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* 桌機的右上角 CTA 收進漢堡選單 */
  .header-cta { display: none; }
  .nav-cta { display: block; margin: 12px 24px 6px; text-align: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-panel); border-bottom: 1px solid var(--line);
    padding: 8px 0; display: none;
  }
  #nav-check:checked ~ .nav { display: flex; }
  .nav > a, .nav .menu-label { padding: 12px 24px; }
  .has-dropdown { position: static; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 8px 20px;
    background: transparent; min-width: 0;
  }
  .hero, .split, .page-layout, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 34px; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .card-grid-3, .work-grid, .portfolio { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 24px; }
  .header-inner { padding: 16px 24px; }
  .card-grid-4, .gallery-4, .gallery-3, .card-grid-3, .work-grid,
  .portfolio, .feature-grid, .highlight-grid, .stat-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 28px; }
  .section-head h2, .advantage h2, .split h2 { font-size: 24px; }
  .big-num { font-size: 48px; }
  .site-footer, .cta { padding-left: 24px; padding-right: 24px; }
  /* 浮動 LINE 按鈕在手機縮成圓形圖示 */
  .line-float { padding: 0; width: 54px; height: 54px; border-radius: 50%; justify-content: center; right: 16px; bottom: 16px; }
  .line-float span { display: none; }
  .lb-overlay { padding: 16px; }
}
