/* ============================================================
   凰豐系統櫃裝潢 官網 — 樣式
   配色靈感來自品牌 logo：深綠／藏藍大理石底 + 金色文字
   ============================================================ */

:root {
  --color-bg: #0b0c0d;
  --color-bg-panel: #15171a;
  --color-bg-panel-alt: #1b1e22;
  --color-green-deep: #0d2820;
  --color-navy-deep: #0e1a2e;
  --color-gold: #c9a961;
  --color-gold-bright: #e8cf8f;
  --color-text: #f2ede1;
  --color-text-muted: #b7ae9c;
  --color-border: rgba(201, 169, 97, 0.25);
  --color-line: #06c755;
  --color-line-dark: #05a648;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 6px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: "Noto Serif TC", "PingFang TC", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-panel);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  color: var(--color-gold-bright);
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ── 按鈕 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-bright), var(--color-gold));
  color: #1a1408;
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(201, 169, 97, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-gold-bright);
}
.btn-outline:hover { background: rgba(201, 169, 97, 0.08); }

.btn-line {
  background: var(--color-line);
  color: #fff;
}
.btn-line:hover { background: var(--color-line-dark); box-shadow: 0 10px 24px rgba(6, 199, 85, 0.35); }

.btn-block { width: 100%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-gold-bright), var(--color-gold) 60%, #7a611f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #1a1408;
  font-family: "Noto Serif TC", serif;
}
.brand-names { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name-zh { font-weight: 700; color: var(--color-gold-bright); font-size: 1.05rem; }
.brand-name-en { font-size: 0.7rem; color: var(--color-text-muted); letter-spacing: 0.1em; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 10px 20px; font-size: 0.85rem; }
.header-actions .btn-outline { display: none; }

/* 社群圓形圖示按鈕（頁首）*/
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-gold-bright);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.social-icon:hover {
  background: var(--color-gold);
  color: #1a1408;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .header-actions .btn-outline { display: inline-flex; }
}
/* 手機版：頁首藏「加LINE諮詢」文字按鈕（底部已有固定列），但保留社群圖示 */
@media (max-width: 520px) {
  .header-actions #header-line-btn { display: none; }
}

/* ── Promo Banner ── */
.promo-banner {
  background: linear-gradient(90deg, var(--color-green-deep), var(--color-navy-deep));
  border-bottom: 1px solid var(--color-border);
  color: var(--color-gold-bright);
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 16px;
}
.promo-banner a { text-decoration: underline; color: var(--color-gold); margin-left: 8px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-green-deep) 0%, var(--color-bg) 55%, var(--color-navy-deep) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(201,169,97,0.15), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 640px; padding: 80px 0; }
.hero .eyebrow {
  color: var(--color-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  white-space: pre-line;
  margin: 0 0 20px;
  color: var(--color-text);
}
.hero h1 .accent { color: var(--color-gold-bright); }
.hero-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--color-bg-panel-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--color-gold-bright); }
.service-card p { color: var(--color-text-muted); margin: 0; font-size: 0.92rem; }

/* ── Why us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.why-item { padding-left: 20px; border-left: 2px solid var(--color-gold); }
.why-item h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--color-text); }
.why-item p { color: var(--color-text-muted); margin: 0; font-size: 0.92rem; }

/* ── Placeholder image blocks ── */
.img-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(201,169,97,0.12), rgba(201,169,97,0.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.img-placeholder .placeholder-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  padding: 8px 14px;
}
.img-placeholder .placeholder-label b { display: block; color: var(--color-gold); font-size: 0.85rem; margin-bottom: 4px; }

/* ── Before / After（單張合成對比圖，已內含施工前/完工後標籤）── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.ba-item { text-align: center; }
.ba-item .img-placeholder {
  aspect-ratio: 5 / 4;
  margin-bottom: 12px;
}
.ba-item .img-placeholder img { object-fit: contain; background: #111; }
.ba-item .ba-label { color: var(--color-text); font-weight: 700; }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-card .img-placeholder { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.gallery-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,12,13,0.75);
  color: var(--color-gold-bright);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.05em;
}
.gallery-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--color-text);
  font-size: 0.88rem;
  z-index: 2;
}
.gallery-more { text-align: center; margin-top: 44px; }
.gallery-more-hint { color: var(--color-text-muted); margin: 0 0 18px; font-size: 0.95rem; }
.gallery-more-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-social {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-gold-bright);
  gap: 10px;
}
.btn-social svg { flex-shrink: 0; }
.btn-social:hover {
  background: var(--color-gold);
  color: #1a1408;
  border-color: var(--color-gold);
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--color-bg-panel-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .quote-mark { color: var(--color-gold); font-size: 2rem; line-height: 1; font-family: Georgia, serif; }
.testimonial-card p.quote { color: var(--color-text); margin: 8px 0 16px; }
.testimonial-card .author { color: var(--color-text-muted); font-size: 0.85rem; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--color-gold);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--color-text-muted);
  margin: 14px 0 0;
  font-size: 0.94rem;
}

/* ── Contact（LINE QR + 電話）── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--color-bg-panel-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 36px;
}
.contact-card-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.2rem; margin: 0 0 10px; color: var(--color-gold-bright); }
.contact-card p { color: var(--color-text-muted); margin: 0 0 20px; font-size: 0.92rem; }

.contact-line {
  display: flex;
  gap: 32px;
  align-items: center;
  background: linear-gradient(150deg, var(--color-green-deep), var(--color-bg-panel-alt) 70%);
}
.contact-line-info { flex: 1; }
.contact-line-info .btn { margin-bottom: 14px; }
.contact-line-id {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}
.contact-qr {
  flex-shrink: 0;
  text-align: center;
}
.contact-qr img {
  width: 168px;
  height: 168px;
  border-radius: 10px;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.contact-qr-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.contact-phone { text-align: left; }
.contact-phone-list { display: flex; flex-direction: column; gap: 12px; }
.contact-phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.contact-phone-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
}
.contact-phone-item .phone-icon { font-size: 1.1rem; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-line { flex-direction: column-reverse; text-align: center; }
  .contact-line-info { text-align: center; }
}

/* ── Lead Form ── */
.lead-section {
  background: linear-gradient(160deg, var(--color-navy-deep), var(--color-bg) 60%, var(--color-green-deep));
}
.lead-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg-panel-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 48px;
  box-shadow: var(--shadow-soft);
}
.lead-wrap .form-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; color: var(--color-text-muted); }
.form-field label .required { color: var(--color-gold); margin-left: 2px; }
.form-field input, .form-field select {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-gold);
}
.form-submit-row { grid-column: 1 / -1; margin-top: 8px; }
.form-note { font-size: 0.78rem; color: var(--color-text-muted); text-align: center; margin-top: 14px; }

.lead-success { text-align: center; padding: 20px 0; }
.lead-success .check { font-size: 3rem; margin-bottom: 12px; }
.lead-success h3 { color: var(--color-gold-bright); margin: 0 0 8px; }
.lead-success p { color: var(--color-text-muted); margin: 0 0 24px; }
.lead-success .success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .lead-wrap { padding: 32px 20px; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 120px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--color-gold); }

/* ── Floating LINE CTA (desktop right side) ── */
.floating-line {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: none;
}
.floating-line a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-line);
  color: #fff;
  padding: 16px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 0.9rem;
  max-width: 56px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, background 0.2s ease;
}
.floating-line a:hover {
  max-width: 220px;
  background: var(--color-line-dark);
}
.floating-line .line-icon { font-size: 1.4rem; flex-shrink: 0; }

@media (min-width: 900px) {
  .floating-line { display: block; }
}

/* ── Mobile bottom bar ── */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(11,12,13,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}
.mobile-bar .btn { flex: 1; padding: 14px 10px; font-size: 0.88rem; }

@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

@media (max-width: 899px) {
  body { padding-bottom: 74px; }
}
