@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;900&family=Noto+Serif+TC:wght@600;700;900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #0f766e;
  --primary-deep: #0c5f59;
  --primary-dark: #082c1e;
  --cta: #0369a1;
  --bg: #f0fdfa;
  --surface: #ffffff;
  --ink: #134e4a;
  --ink-muted: #2f5f57;
  --line: rgba(19, 78, 74, 0.1);
  --hero-glow: rgba(20, 184, 166, 0.22);
}

html,
body {
  margin: 0;
  padding: 0;
}

body.fcard-page {
  min-height: 100dvh;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

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

.fcard {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.fcard-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 20px 52px;
  color: #ffffff;
  background:
    radial-gradient(ellipse 90% 70% at 85% 0%, var(--hero-glow), transparent 58%),
    linear-gradient(155deg, #0a3d34 0%, var(--primary-deep) 42%, var(--primary-dark) 100%);
}

.fcard-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.fcard-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 0.2s ease;
}

.fcard-back svg {
  width: 16px;
  height: 16px;
}

.fcard-back:hover,
.fcard-back:focus-visible {
  color: #ffffff;
}

.fcard-hero-body {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.fcard-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.62);
}

.fcard-brand {
  margin: 0;
}

.fcard-brand-main {
  display: block;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(2.75rem, 14vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.fcard-brand-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(0.95rem, 4.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.86);
}

.fcard-scope {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.fcard-sheet {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: -28px;
  padding: 22px 18px 20px;
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 40px rgba(8, 44, 30, 0.1);
}

.fcard-call {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcard-call:hover,
.fcard-call:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.34);
}

.fcard-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.fcard-call-icon svg {
  width: 22px;
  height: 22px;
}

.fcard-call-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.88;
}

.fcard-call-number {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.35rem, 6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.fcard-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.fcard-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 12px 4px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fcard-quick-item:hover,
.fcard-quick-item:focus-visible {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e8faf7;
}

.fcard-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--primary-deep);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.fcard-quick-icon svg {
  width: 19px;
  height: 19px;
}

.fcard-quick-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--ink);
}

.fcard-services {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.fcard-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fcard-service:hover,
.fcard-service:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
}

.fcard-service--land {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(15, 118, 110, 0.02));
  border-left: 3px solid var(--primary);
}

.fcard-service--urban {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.07), rgba(3, 105, 161, 0.02));
  border-left: 3px solid var(--cta);
}

.fcard-service-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.fcard-service-copy {
  min-width: 0;
  flex: 1;
}

.fcard-service-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.fcard-service-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.fcard-service-arrow {
  flex-shrink: 0;
  color: var(--ink-muted);
  opacity: 0.5;
}

.fcard-service-arrow svg {
  width: 18px;
  height: 18px;
}

.fcard-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fcard-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fcard-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.fcard-qr-wrap {
  flex-shrink: 0;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.fcard-qr {
  width: 96px;
  height: 96px;
  border-radius: 6px;
}

.fcard-share-copy {
  min-width: 0;
}

.fcard-share-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.fcard-share-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.fcard-share-url {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
}

.fcard-footer {
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface);
}

.fcard-footer p {
  margin: 0;
}

.fcard-address {
  margin-top: 4px !important;
  line-height: 1.5;
}

@media (min-width: 480px) {
  .fcard {
    max-width: 28rem;
    padding-top: 12px;
  }

  .fcard-hero {
    border-radius: 24px 24px 0 0;
  }

  .fcard-sheet {
    border-radius: 0 0 24px 24px;
    margin-bottom: 20px;
    box-shadow: 0 24px 60px rgba(8, 44, 30, 0.1);
  }

  .fcard-footer {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcard-call,
  .fcard-quick-item,
  .fcard-service,
  .fcard-back {
    transition: none;
  }

  .fcard-call:hover,
  .fcard-call:focus-visible {
    transform: none;
  }
}
