/* SellSmart 銷售人的秘密 - Shared styles */

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', 'Inter', sans-serif; background: #F4EFE4; color: #1A1A1A; }

.gradient-text {
  background: linear-gradient(135deg, #E85D1F 0%, #FF8047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bg {
  background:
    radial-gradient(ellipse at top right, rgba(232,93,31,0.08), transparent 60%),
    #F4EFE4;
}
.dotted-bg {
  background-image: radial-gradient(#1A1A1A 1px, transparent 1px);
  background-size: 24px 24px;
}
.card-hover { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(232,93,31,0.25);
}
.underline-accent { position: relative; display: inline-block; }
.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 10px;
  background: #E85D1F;
  opacity: 0.25;
  z-index: -1;
}
.formula-box { background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%); }

.running-man { animation: run 2.5s ease-in-out infinite; }
@keyframes run {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.pulse-ring { animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.service-num { font-family: 'Bitter', serif; font-weight: 900; }

.btn-primary {
  background: #E85D1F;
  color: white;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px -6px rgba(232,93,31,0.5);
}
.btn-primary:hover {
  background: #C94A10;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(232,93,31,0.6);
}
.btn-ghost {
  border: 2px solid #1A1A1A;
  color: #1A1A1A;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: #1A1A1A; color: white; }

.tag-pill {
  background: rgba(232,93,31,0.1);
  color: #E85D1F;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mobile menu drawer — explicit CSS to bypass Tailwind CDN JIT issues with arbitrary values */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F4EFE4;
  z-index: 45;
  overflow-y: auto;
  border-top: 1px solid #E8DFCE;
}
.mobile-drawer.hidden { display: none; }
@media (min-width: 1024px) {
  .mobile-drawer { display: none !important; }
}

/* Accordion (FAQ) */
details.faq-item {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all 0.3s;
}
details.faq-item[open] {
  box-shadow: 0 8px 24px -8px rgba(232,93,31,0.15);
}
details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: #E85D1F;
  transition: transform 0.3s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-answer {
  padding-top: 14px;
  color: #3A3A3A;
  line-height: 1.7;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E8DFCE;
  border-radius: 14px;
  background: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #E85D1F;
  box-shadow: 0 0 0 4px rgba(232,93,31,0.1);
}
.form-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

/* Select dropdown options — force dark text on white background
   even when the <select> itself is styled dark (enterprise form).
   Without this, options inherit white text on native white dropdown
   in some browsers and become invisible. */
select.form-input option {
  color: #1A1A1A;
  background-color: #ffffff;
}
select.form-input option:checked,
select.form-input option:hover {
  background-color: #FFF3EB;
  color: #1A1A1A;
}
