/* 竹城盾 - 投資詐騙資訊查詢平台樣式 */

/* ===== 顏色變數 ===== */
:root {
  --primary-red: #D32F2F;
  --secondary-red: #C62828;
  --safe-green: #4CAF50;
  --warning-bg: #FFF4F4;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #E0E0E0;
  --bg-light: #F5F5F5;
}

/* ===== 基礎樣式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== 導覽列 ===== */
.navbar {
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-red);
  font-size: 1.5rem;
  font-weight: bold;
}

.brand-logo {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  margin-right: 0.5rem;
  object-fit: contain;
  display: block;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* 登入按鈕樣式 */
.btn-login {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-red);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-left: 1rem;
  border: 2px solid var(--primary-red);
}

.btn-login:hover {
  background-color: var(--secondary-red);
  border-color: var(--secondary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

/* 測試群組按鈕樣式 */
.btn-test-group {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #FF9800;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-left: 1rem;
  border: 2px solid #FF9800;
}

.btn-test-group:hover {
  background-color: #F57C00;
  border-color: #F57C00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-red);
  padding: 1rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  padding: 0.75rem 0;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  color: var(--primary-red);
}

/* ===== 主要內容區 ===== */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* ===== 首頁樣式 ===== */
.hero-section {
  background: linear-gradient(135deg, var(--warning-bg) 0%, #ffffff 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 3px solid var(--primary-red);
}

.hero-title {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
}

.entry-cards {
  padding: 4rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.entry-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-warning {
  border-color: var(--primary-red);
}

.card-warning:hover {
  border-color: var(--secondary-red);
  background-color: var(--warning-bg);
}

.card-info {
  border-color: #2196F3;
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-red);
}

.card-info .card-icon {
  color: #2196F3;
}

.card-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: bold;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===== 按鈕樣式 ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--secondary-red);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #757575;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #616161;
}

.btn-danger {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--secondary-red);
}

.btn-warning {
  background-color: #F57C00;
  color: #ffffff;
}

.btn-warning:hover {
  background-color: #E65100;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== 警示區塊 ===== */
.warning-section {
  padding: 2rem 0;
}

.warning-box {
  background-color: var(--warning-bg);
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.warning-content {
  flex: 1;
}

.warning-title {
  color: var(--primary-red);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.warning-text {
  color: var(--text-dark);
  line-height: 1.8;
}

.warning-link {
  color: var(--primary-red);
  font-weight: bold;
  text-decoration: none;
}

.warning-link:hover {
  text-decoration: underline;
}

.warning-list {
  list-style: none;
  padding-left: 0;
}

.warning-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.warning-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* ===== 法律聲明 ===== */
.legal-section {
  padding: 2rem 0;
  background-color: var(--bg-light);
}

.legal-notice {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.legal-title {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.legal-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 頁面標題 ===== */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-title {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ===== 搜尋框 ===== */
.search-section {
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.search-btn {
  padding: 0.75rem 2rem;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: var(--secondary-red);
}

.search-clear {
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.search-clear:hover {
  background-color: var(--bg-light);
  color: var(--primary-red);
}

/* ===== 認證群組頁面主題 ===== */
.verified-header {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #2196F3;
}

.verified-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.verified-icon-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  flex-shrink: 0;
}

.verified-title-content {
  flex: 1;
}

.verified-header .page-title {
  color: #1976D2;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.verified-header .page-subtitle {
  color: #424242;
  font-size: 1rem;
}

.verified-info-banner {
  background-color: #ffffff;
  border-left: 4px solid #2196F3;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.verified-info-banner p {
  margin: 0;
  color: #1976D2;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 篩選按鈕 ===== */
.filter-section {
  background-color: #ffffff;
  border: 2px solid #E3F2FD;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background-color: #F5F5F5;
  border-radius: 10px;
  padding: 4px;
  border: 2px solid #E3F2FD;
}

.filter-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border: none;
  background-color: transparent;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
  position: relative;
}

.filter-btn:hover {
  color: #1976D2;
  background-color: rgba(33, 150, 243, 0.08);
}

.filter-btn.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.filter-btn.active::before {
  content: "✓";
  position: absolute;
  left: 12px;
  font-size: 16px;
  font-weight: bold;
}

.filter-btn.active:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* ===== 認證標識（藍勾勾主題） ===== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #1976D2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
  border: 2px solid #2196F3;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

.verified-badge::before {
  content: "✓";
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #FFF3E0;
  color: #F57C00;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
}

.private-badge::before {
  content: "🔒";
  font-size: 14px;
}

/* ===== 搜尋框樣式 ===== */
.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575;
  font-size: 18px;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #BBDEFB;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background-color: #ffffff;
}

.search-input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-btn:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.search-clear {
  padding: 14px 20px;
  background-color: #F5F5F5;
  color: #757575;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-clear:hover {
  background-color: #EEEEEE;
  border-color: #BDBDBD;
  color: #424242;
}

/* ===== 認證群組按鈕 ===== */
.btn-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-verified:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  color: #ffffff;
}

/* 未公開群組按鈕樣式 */
.btn-verified-private {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-verified-private:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  color: #ffffff;
}

.btn-icon {
  font-size: 16px;
  font-weight: bold;
}

/* ===== 機器人分析提示橫幅 ===== */
.bot-analysis-banner {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
  border: 2px solid #1565C0;
}

.bot-analysis-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bot-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.bot-text {
  flex: 1;
  min-width: 250px;
}

.bot-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.bot-description {
  font-size: 1rem;
  color: #E3F2FD;
  line-height: 1.6;
  margin: 0;
}

.bot-actions {
  flex-shrink: 0;
}

.btn-bot-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: #ffffff;
  color: #1976D2;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-bot-join:hover {
  background-color: #F5F5F5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #1565C0;
}

.btn-bot-join .btn-icon {
  font-size: 18px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .bot-analysis-content {
    flex-direction: column;
    text-align: center;
  }

  .bot-icon {
    font-size: 3rem;
  }

  .bot-title {
    font-size: 1.25rem;
  }

  .bot-description {
    font-size: 0.9rem;
  }

  .btn-bot-join {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 詐騙訊息查詢分析 ===== */
.fraud-check-section {
  margin-bottom: 3rem;
}

.fraud-check-box {
  background-color: #ffffff;
  border: 2px solid #E3F2FD;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.check-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.check-form {
  margin-top: 1.5rem;
}

.check-textarea {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  resize: vertical;
}

/* 分析結果彈出框 */
.analysis-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-width: calc(100% - 40px);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease-out;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-analysis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  border-bottom: 3px solid #1565C0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  line-height: 1;
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body-analysis {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer-analysis {
  display: flex;
  gap: 12px;
  padding: 1.5rem 2rem;
  border-top: 2px solid #E3F2FD;
  background-color: #F5FAFF;
  justify-content: flex-end;
}

.modal-footer-analysis .btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-danger {
  background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #C62828 0%, #B71C1C 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
  color: #ffffff;
}

.result-header {
  margin-bottom: 1.5rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1976D2;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-item {
  padding: 1.25rem;
  background-color: #F5FAFF;
  border-radius: 8px;
  border-left: 4px solid #2196F3;
}

.result-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1976D2;
  margin-bottom: 1rem;
}

/* 詐騙指數顯示 */
.fraud-score-item {
  background: linear-gradient(135deg, #F5FAFF 0%, #E3F2FD 100%);
  border-left: 4px solid #2196F3;
}

.fraud-score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1rem;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: #D32F2F;
  line-height: 1;
}

.score-total {
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
}

.score-level {
  font-size: 1.25rem;
  font-weight: 700;
  margin-left: auto;
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-bar {
  width: 100%;
  height: 12px;
  background-color: #E0E0E0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
}

.score-bar-fill {
  height: 100%;
  background-color: #D32F2F;
  border-radius: 6px;
  transition: width 0.8s ease-out, background-color 0.8s ease-out;
}

/* 詐騙類型標籤 */
.fraud-types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fraud-type-tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: #FFEBEE;
  color: #D32F2F;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #FFCDD2;
}

/* 法律條文列表 */
.laws-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.law-item {
  padding: 12px 16px;
  background-color: #FFF3E0;
  color: #F57C00;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border-left: 4px solid #FF9800;
}

/* 建議內容 */
.result-suggestion {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-left: 4px solid #FF9800;
}

.suggestion-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suggestion-item {
  padding: 12px 16px;
  background-color: #ffffff;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #424242;
  border-left: 3px solid #FF9800;
  font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .fraud-check-box {
    padding: 1.5rem;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .score-level {
    font-size: 1rem;
    padding: 6px 12px;
  }
}

/* ===== 詐騙案例分享頁面 ===== */
.share-form-section {
  margin-bottom: 3rem;
}

.share-form-box {
  background-color: #ffffff;
  border: 2px solid #E3F2FD;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.share-form-box .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1976D2;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-red);
}

/* 方式選擇標籤 */
.share-method-selector {
  margin: 2rem 0;
}

.method-tabs {
  display: flex;
  gap: 0;
  background-color: #F5F5F5;
  border-radius: 10px;
  padding: 4px;
  border: 2px solid #E3F2FD;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.method-tab {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: none;
  background-color: transparent;
  color: #666;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-tab:hover {
  color: #1976D2;
  background-color: rgba(33, 150, 243, 0.08);
}

.method-tab.active {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.method-content {
  display: none;
  margin-top: 1.5rem;
}

.method-content.active {
  display: block;
}

.dcard-import-form,
.facebook-import-form {
  margin-top: 0;
}

.import-description {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #F5FAFF;
  border-left: 4px solid #2196F3;
  border-radius: 6px;
  color: #1976D2;
  font-size: 14px;
  line-height: 1.6;
}

.share-form {
  margin-top: 0;
}

.share-form .form-group {
  margin-bottom: 1.5rem;
}

.share-form .form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .method-tabs {
    max-width: 100%;
    overflow-x: auto;
  }
  
  .method-tab {
    font-size: 13px;
    padding: 10px 12px;
    min-width: 120px;
  }
  
  .share-form-box {
    padding: 1.5rem;
  }
  
  .fraud-check-box {
    padding: 1.5rem;
  }
  
  .check-textarea {
    font-size: 13px;
  }
  
  .modal-container {
    max-width: calc(100% - 20px);
    margin: 10px;
  }
  
  .modal-body-analysis {
    padding: 1.5rem;
  }
  
  .modal-footer-analysis {
    flex-direction: column;
    padding: 1rem 1.5rem;
  }
  
  .modal-footer-analysis .btn {
    width: 100%;
  }
  
  .cases-filter {
    flex-direction: column;
  }
  
  .filter-select {
    width: 100%;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 案例列表 */
.cases-section {
  margin-top: 3rem;
}

.cases-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 16px;
  border: 2px solid #E3F2FD;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.cases-list {
  display: grid;
  gap: 1.5rem;
}

.case-card {
  background-color: #ffffff;
  border: 2px solid #E3F2FD;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.case-card:hover {
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
  border-color: #2196F3;
  transform: translateY(-2px);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1976D2;
  flex: 1;
}

.case-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-fraud-type {
  background-color: #FFEBEE;
  color: #D32F2F;
}

.badge-contact {
  background-color: #E3F2FD;
  color: #1976D2;
}

.case-body {
  margin-top: 1rem;
}

.case-description {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #E3F2FD;
  font-size: 14px;
}

.case-time {
  color: #666;
}

.loss-amount {
  color: #D32F2F;
  font-weight: 600;
}

.no-loss {
  color: #4CAF50;
  font-weight: 600;
}

.dcard-link {
  color: #FF6B6B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.dcard-link:hover {
  color: #EE5A6F;
  text-decoration: underline;
}

/* 模態框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #E3F2FD;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1976D2;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #D32F2F;
}

.modal-body {
  padding: 1.5rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .case-header {
    flex-direction: column;
  }

  .cases-filter {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }
}

/* ===== 群組列表 ===== */
.groups-list {
  display: grid;
  gap: 1.5rem;
}

.group-card {
  background-color: #ffffff;
  border: 2px solid #E3F2FD;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.group-card:hover {
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
  border-color: #2196F3;
  transform: translateY(-2px);
}

/* 認證群組卡片特殊樣式 */
.group-card:has(.verified-badge) {
  border-left: 4px solid #2196F3;
  background: linear-gradient(to right, #ffffff 0%, #F5FAFF 100%);
}

.group-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #E3F2FD;
  display: flex;
  justify-content: flex-end;
}

/* ===== 測試群組醒目樣式 ===== */
.test-group-card {
  border: 3px solid #FF9800 !important;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.3) !important;
  position: relative;
}

.test-group-banner {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  border-radius: 6px 6px 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(255, 152, 0, 0.8);
  }
}

.test-group-banner-large {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.test-group-header {
  border: 3px solid #FF9800;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #FFF8E1;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.group-name {
  font-size: 1.5rem;
  color: #1976D2;
  font-weight: 700;
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.group-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.type-stock {
  background-color: #E3F2FD;
  color: #1976D2;
}

.type-crypto {
  background-color: #FFF3E0;
  color: #F57C00;
}

.type-futures {
  background-color: #F3E5F5;
  color: #7B1FA2;
}

.type-unknown {
  background-color: #E0E0E0;
  color: #616161;
}

.group-body {
  margin-bottom: 1rem;
}

.group-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.group-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.risk-high {
  background-color: #FFEBEE;
  color: var(--primary-red);
}

.risk-medium {
  background-color: #FFF3E0;
  color: #F57C00;
}

.risk-low {
  background-color: #E8F5E9;
  color: var(--safe-green);
}

.risk-label {
  font-size: 0.875rem;
}

.risk-value {
  font-size: 1rem;
}

.group-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ===== 新群組卡片樣式 ===== */
.group-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.group-avatar {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.group-header-content {
  flex: 1;
}

.group-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.group-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.platform-badge-large {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.official-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #4CAF50;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.unofficial-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #757575;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.official-badge-large {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  color: #ffffff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.unofficial-badge-large {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #757575;
  color: #ffffff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.report-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.group-short-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.group-card-body {
  margin-bottom: 1rem;
}

.group-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.investment-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.investment-tag-large {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.investment-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.group-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.group-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.meta-value {
  color: var(--text-light);
  font-size: 0.9rem;
}

.warning-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #FFF4F4;
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  margin-top: 1rem;
}

.warning-alert-large {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #FFF4F4;
  border: 3px solid var(--primary-red);
  border-radius: 8px;
  margin-top: 1rem;
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.warning-text {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.95rem;
}

.warning-content {
  flex: 1;
}

.warning-title {
  color: var(--primary-red);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* ===== 詳細頁面新樣式 ===== */
.detail-header-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.detail-avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
}

.detail-title-section {
  flex: 1;
}

.group-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-light);
  font-size: 1rem;
}

.fee-info {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.fee-type-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.fee-免費 {
  background-color: #E8F5E9;
  color: #4CAF50;
}

.fee-付費 {
  background-color: #FFEBEE;
  color: var(--primary-red);
}

.fee-免費-進階付費 {
  background-color: #FFF3E0;
  color: #F57C00;
}

.fee-description {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.risk-info {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.risk-note-box {
  padding: 1rem;
  background-color: #ffffff;
  border-left: 4px solid;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.risk-note-box p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

.report-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #FFEBEE;
  border: 2px solid var(--primary-red);
  border-radius: 6px;
}

.report-icon {
  font-size: 1.5rem;
}

.report-text {
  color: var(--primary-red);
  font-weight: 600;
}

.join-section {
  background-color: #E8F5E9;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  padding: 2rem;
}

.join-info {
  text-align: center;
}

.join-instruction {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.join-btn {
  margin-bottom: 1rem;
}

.join-warning {
  color: #F57C00;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 600;
}

.test-join-section {
  border: 3px solid #FF9800 !important;
  background-color: #FFF8E1 !important;
}

.test-join-btn {
  background-color: #FF9800 !important;
  border-color: #FF9800 !important;
  font-size: 1.2rem !important;
  padding: 1.25rem 3rem !important;
  animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
  }
}

/* ===== 詳細頁面 ===== */
.back-link {
  margin-bottom: 2rem;
}

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.detail-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: bold;
}

.detail-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.risk-badge-large {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-red);
}

.section-content {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===== 常見話術列表 ===== */
.phrases-list {
  display: grid;
  gap: 1rem;
}

.phrase-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-red);
  border-radius: 4px;
}

.phrase-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.phrase-text {
  color: var(--text-dark);
  line-height: 1.8;
  flex: 1;
}

/* ===== AI 分析區塊 ===== */
.ai-analysis-section {
  background-color: #FFF9C4;
  border: 2px solid #FBC02D;
  border-radius: 8px;
  padding: 2rem;
}

.ai-analysis-box {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 1.5rem;
}

.ai-analysis-content {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===== 行動按鈕區 ===== */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  justify-content: center;
}

.detail-warning {
  margin-top: 2rem;
}

/* ===== FAQ 相關 ===== */
.category-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.category-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.category-btn.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.popular-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--warning-bg);
  border-radius: 8px;
}

.faq-section {
  margin-bottom: 2rem;
}

.faq-list {
  display: grid;
  gap: 1.5rem;
}

.faq-card {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.faq-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--primary-red);
}

.faq-question {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-question a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.faq-question a:hover {
  color: var(--primary-red);
}

.faq-summary {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.faq-meta {
  display: flex;
  gap: 1rem;
}

.faq-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-light);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.faq-category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== 警語區塊 ===== */
.alert-box {
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-danger {
  background-color: #D32F2F;
  color: #ffffff;
}

.alert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.alert-text {
  line-height: 1.8;
}

/* ===== 建議列表 ===== */
.suggestions-list {
  list-style: none;
  padding-left: 0;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-left: 4px solid var(--safe-green);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.suggestion-icon {
  color: var(--safe-green);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.suggestion-text {
  color: var(--text-dark);
  line-height: 1.8;
  flex: 1;
}

/* ===== 相關問題 ===== */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-list {
  display: grid;
  gap: 1rem;
}

.related-item {
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 6px;
  transition: all 0.3s;
}

.related-item:hover {
  background-color: #E0E0E0;
}

.related-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.related-link:hover {
  color: var(--primary-red);
}

/* ===== 空狀態 ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  background-color: #2C2C2C;
  color: #ffffff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: bold;
}

.footer-text {
  color: #B0B0B0;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444444;
}

.footer-disclaimer {
  color: #FF6B6B;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-copyright {
  color: #B0B0B0;
  font-size: 0.875rem;
}

/* ===== 表單樣式 ===== */
.contact-section,
.report-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-label {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-value {
  color: var(--text-light);
  line-height: 1.8;
}

.contact-value a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.contact-value a:hover {
  text-decoration: underline;
}

.report-form-box {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* ===== 成功訊息 ===== */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #ffffff;
  border: 2px solid var(--safe-green);
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--safe-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.success-text {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  white-space: pre-line;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RWD 響應式設計 ===== */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .btn-login,
  .btn-test-group {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }

  .search-btn,
  .search-clear {
    width: 100%;
  }

  .group-header {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .category-buttons {
    flex-direction: column;
  }

  .category-btn {
    width: 100%;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .entry-card {
    padding: 1.5rem;
  }
  
  .navbar-content {
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .method-tab {
    font-size: 12px;
    padding: 8px 10px;
    min-width: 100px;
  }
  
  .share-form-box .section-title {
    font-size: 1.5rem;
  }
  
  .fraud-check-box .section-title {
    font-size: 1.5rem;
  }
  
  .case-title {
    font-size: 1.1rem;
  }
  
  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

