/* ============================================================
   FAQ 頁樣式
   ============================================================ */

/* 搜尋 */
.faq-search {
  margin-bottom: 32px;
}

.faq-search .input-group-addon {
  background: var(--gold-2);
  border: 1px solid var(--gold-2);
  color: #fff;
  border-radius: 4px 0 0 4px;
}

.faq-search .form-control {
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-left: none;
  border-radius: 0 4px 4px 0;
  height: 46px;
  font-size: 16px;
  font-family: 'Noto Sans HK', sans-serif;
}

/* 側邊欄導航 */
.faq-nav {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.faq-nav-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gold);
  background: var(--bg-section);
}

.faq-nav ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.faq-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.faq-nav-link i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  transition: color 0.3s ease;
}

.faq-nav-link:hover {
  color: var(--gold-2);
  background: rgba(208, 188, 101, 0.05);
  border-left-color: rgba(208, 188, 101, 0.3);
}

.faq-nav-link:hover i {
  color: var(--gold-2);
}

.faq-nav-link.active {
  color: var(--gold-2);
  background: rgba(208, 188, 101, 0.08);
  border-left-color: var(--gold-2);
  font-weight: 500;
}

.faq-nav-link.active i {
  color: var(--gold-2);
}

.faq-nav-cta {
  padding: 16px 20px;
  border-top: 1px solid var(--border-gold);
  background: var(--bg-section);
}

.faq-nav-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* FAQ 分區 */
.faq-section {
  margin-bottom: 48px;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-gold);
}

.faq-section-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.faq-section-header h3 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--text-dark);
  margin: 0;
}

/* FAQ 手風琴 */
.faq-accordion {
  margin-bottom: 0;
}

.faq-item {
  border: 1px solid var(--border-gold) !important;
  border-radius: 6px !important;
  margin-bottom: 10px !important;
  box-shadow: none !important;
  overflow: hidden;
}

.faq-item .panel-heading {
  background: #fff !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.faq-item .panel-title a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: var(--text-dark) !important;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.3s ease, background 0.3s ease;
}

.faq-item .panel-title a:hover {
  color: var(--gold-2) !important;
  background: rgba(208, 188, 101, 0.04);
}

.faq-item .panel-title a[aria-expanded="true"],
.faq-item .panel-title a:not(.collapsed) {
  color: var(--gold-2) !important;
  background: rgba(208, 188, 101, 0.06);
  border-bottom: 1px solid var(--border-gold);
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item .panel-title a[aria-expanded="true"] .faq-arrow,
.faq-item .panel-title a:not(.collapsed) .faq-arrow {
  transform: rotate(180deg);
}

.faq-item .panel-body {
  padding: 20px;
  background: #fff;
}

.faq-item .panel-body p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 12px;
}

.faq-item .panel-body p:last-child {
  margin-bottom: 0;
}

.faq-item .panel-body ul,
.faq-item .panel-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.faq-item .panel-body li {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* 簽署方式 */
.sign-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.sign-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-section);
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

.sm-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.sm-info h6 {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.sm-info p {
  font-size: 14px !important;
  color: var(--text-light) !important;
  margin: 0 !important;
}

/* 交易狀態流程 */
.status-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(208, 188, 101, 0.15);
  border: 2px solid rgba(208, 188, 101, 0.3);
  display: block;
}

.status-dot.active {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.status-arrow {
  color: var(--gold-2);
  font-size: 14px;
  margin-bottom: 20px;
}

/* 底部 CTA */
.faq-contact-cta {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 10px;
  padding: 32px;
  margin-top: 20px;
}

.faq-contact-cta h4 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  margin: 0 0 10px;
}

.faq-contact-cta p {
  font-size: 15px;
  color: rgba(228, 226, 223, 0.6);
  margin: 0;
}

.faq-contact-cta .text-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 響應式 */
@media (max-width: 767px) {
  .faq-section-header h3 {
    font-size: 20px;
  }

  .faq-item .panel-title a {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-contact-cta {
    padding: 24px;
  }

  .faq-contact-cta .text-right {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .status-flow {
    gap: 4px;
  }

  .status-arrow {
    font-size: 12px;
  }
}
