/* ===== 部落加包裝 IBROKER — Shared Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #26424f;
  --navy-deep: #1b2f39;
  --teal: #375569;
  --gold: #f2a007;
  --gold-light: #ffc94d;
  --cream: #f7f4ee;
  --ink: #2a2a2a;
  --gray: #6b7278;
  --line: #e7e1d5;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38, 66, 79, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
}

.brand-text {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #26421f !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-left: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(242,160,7,0.4); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2px; background: #fff; border-radius: 2px;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a.nav-link { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin: 14px 8px 0; text-align: center; justify-content: center; }
  .hamburger { display: flex; }
}

/* ---------- Hero (index) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(19,32,38,0.88) 0%, rgba(19,32,38,0.55) 45%, rgba(19,32,38,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(255,201,77,0.5);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-light); }

.hero p.lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 34px;
  max-width: 520px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary { background: var(--gold); color: #26421f; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(242,160,7,0.45); }

.btn-ghost { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, width 0.3s;
}
.hero-dots span.active { background: var(--gold); width: 22px; border-radius: 5px; }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.on-cream { background: var(--cream); }
section.on-white { background: #fff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.section-sub { color: var(--gray); font-size: 1rem; }

/* ---------- Page header banner (bags / custom) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--teal));
  color: #fff;
  padding: 90px 0 64px;
  text-align: center;
}
.page-banner .section-eyebrow { color: var(--gold-light); }
.page-banner h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.page-banner p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto; }

/* ---------- About text (index) ---------- */
.about-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.05rem;
  line-height: 2;
  color: #3f3f3f;
}
.about-text p { margin-bottom: 22px; }
.about-text p:first-child {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.75;
}
.about-text p:last-child { margin-bottom: 0; }

.flow-img { max-width: 1000px; margin: 0 auto; }
.flow-img img { width: 100%; height: auto; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30,45,55,0.1);
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(19,32,38,0.88), transparent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Material grid ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,45,55,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.mat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(30,45,55,0.14); }
.mat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mat-card .mat-body { padding: 16px 18px 20px; }
.mat-card .mat-name { font-weight: 800; color: var(--teal); font-size: 1.02rem; margin-bottom: 6px; }
.mat-card .mat-desc { font-size: 0.88rem; color: var(--gray); }

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(30,45,55,0.1); }
.video-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.video-card .video-label {
  padding: 16px; text-align: center; font-weight: 800; color: var(--navy); letter-spacing: 0.08em;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal), var(--navy-deep));
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }

/* ---------- Bag type cards ---------- */
.bag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.bag-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30,45,55,0.08);
  display: flex;
  flex-direction: column;
}
.bag-card .bag-media {
  background: #eef3f5;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.bag-card .bag-media img { width: 100%; }
.bag-card .bag-photo { aspect-ratio: 4/3; overflow: hidden; }
.bag-card .bag-photo img { width: 100%; height: 100%; object-fit: cover; }
.bag-card .bag-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.bag-card .bag-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bag-card .bag-photos img:hover { transform: scale(1.06); }
.bag-card .bag-body { padding: 22px 26px 26px; }
.bag-card .bag-tag {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--gold); font-weight: 800; text-transform: uppercase; margin-bottom: 8px;
}
.bag-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; font-weight: 800; }
.bag-card p { color: var(--gray); font-size: 0.93rem; }
.bag-overview { max-width: 960px; margin: 0 auto 48px; }
.bag-overview img { width: 100%; height: auto; }
.bag-specs {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #e6ebee;
  font-size: 0.9rem; line-height: 1.6;
}
.bag-specs dt { font-weight: 800; color: var(--navy); white-space: nowrap; }
.bag-specs dd { margin: 0; color: var(--gray); }

/* ---------- Feature cards (custom page) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 6px 20px rgba(30,45,55,0.08);
  text-align: left;
}
.feature-card .feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; font-weight: 800; }
.feature-card p { color: var(--gray); font-size: 0.92rem; }

/* ---------- Highlight strip ---------- */
.highlight-strip {
  background: linear-gradient(120deg, var(--navy-deep), var(--teal));
  color: #fff; text-align: center; padding: 56px 24px;
}
.highlight-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.highlight-strip .accent { color: #ff6b5c; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 3px 14px rgba(30,45,55,0.07);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--gray);
  font-size: 0.94rem;
}
.faq-item.open .faq-a { padding: 0 24px 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 36px; background: #fff; border-radius: 6px; padding: 3px 5px; }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 1.02rem; }
.footer-col h4 {
  color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.footer-col p, .footer-col a { font-size: 0.92rem; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff !important; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; margin-top: 4px; font-size: 0.88rem;
}
.footer-bottom {
  text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .brand-text { display: block; }
}

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .bag-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; }
}
