/* ── 全局重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #1a2744;
  --navy2: #243256;
  --gold:  #c9a84c;
  --gold2: #e0bb68;
  --white: #ffffff;
  --gray:  #f5f6f8;
  --text:  #333344;
  --muted: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── 導航欄 ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background .3s;
}

#navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#navbar .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy);
  font-weight: 900;
}

#navbar .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
}

#navbar nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .92rem;
  margin-left: 2rem;
  letter-spacing: .04em;
  transition: color .2s;
}
#navbar nav a:hover { color: var(--gold2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ── 手機選單 ── */
#mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--navy2);
  z-index: 999;
  padding: 1rem 6%;
  flex-direction: column;
  gap: .6rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#mobile-menu a:last-child { border-bottom: none; }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(26,39,68,.88) 0%, rgba(26,39,68,.72) 100%),
    url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1600&q=80") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 6% 80px;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .28rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: .04em;
}

.hero-content h1 span { color: var(--gold2); }

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
  max-width: 520px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .06em;
  transition: background .2s, transform .15s;
  margin-right: 1rem;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .82rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .06em;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--gold2); color: var(--gold2); }

/* ── 通用 section ── */
section { padding: 90px 6%; }
section:nth-child(even) { background: var(--gray); }

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .8rem;
  letter-spacing: .02em;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── 業務卡片 ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.2rem 2rem;
  box-shadow: 0 4px 24px rgba(26,39,68,.07);
  border-top: 4px solid var(--gold);
  transition: transform .25s, box-shadow .25s;
}
section:nth-child(even) .card { background: var(--white); }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(26,39,68,.13); }

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .7rem;
}

.card p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}

/* ── 案例 ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,39,68,.08);
  transition: transform .25s;
}
.case-card:hover { transform: translateY(-4px); }

.case-header {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}

.case-num {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--navy);
  flex-shrink: 0;
}

.case-header h3 { color: var(--white); font-size: 1rem; font-weight: 700; }

.case-body { padding: 1.4rem 1.6rem; }
.case-body p { color: var(--muted); font-size: .92rem; line-height: 1.75; }

.case-result {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  background: #edf7ed;
  color: #276427;
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 20px;
}

/* ── 感言 ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(26,39,68,.07);
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: .3;
  position: absolute;
  top: .8rem;
  left: 1.2rem;
  font-family: Georgia, serif;
}

.testimonial p {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.8;
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

.stars { color: var(--gold); font-size: 1rem; margin-bottom: .5rem; }

.reviewer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.reviewer-info .name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.reviewer-info .label { font-size: .78rem; color: var(--muted); }

/* ── CTA ── */
#cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 80px 6%;
  text-align: center;
}
#cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
#cta p { color: rgba(255,255,255,.72); margin-bottom: 2rem; font-size: 1rem; }

/* ── Footer ── */
footer {
  background: #0f1929;
  color: rgba(255,255,255,.65);
  padding: 3rem 6% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text { color: var(--white); font-size: 1.2rem; font-weight: 700; }
.footer-brand p { margin-top: .8rem; font-size: .88rem; line-height: 1.75; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; font-size: .88rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold2); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .7rem;
  font-size: .88rem;
}
.contact-icon { color: var(--gold); margin-top: .1rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  #navbar nav { display: none; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero-content h1 { font-size: 1.9rem; }
  .btn-outline { display: none; }
}
