/* 商品列表頁分頁器 Active 樣式修正 (僅影響本頁) */
.books .page-pag .pagination .active a {
  background-color: #1b2a6c !important;
  color: #ffffff !important;
}

/* 知識庫卡片精緻重設計 */
.knowledge-base .block-model .item {
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border: 1px solid #eef2f6 !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
  /* 手機版一排一筆 */
  margin-right: 0 !important;
}

@media (min-width: 768px) {
  .knowledge-base .block-model .item {
    width: 23.8% !important;
    /* 電腦版一排四筆 */
    margin-right: 1.6% !important;
    margin-bottom: 30px !important;
  }

  .knowledge-base .block-model .item:nth-of-type(4n) {
    margin-right: 0 !important;
  }
}



.knowledge-base .block-model .item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.knowledge-base .block-model .item .contact {
  padding: 20px 18px 12px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.knowledge-base .block-model .item .contact .block-photo {
  margin-bottom: 15px !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease !important;
  padding-top: 0 !important;
}

.knowledge-base .block-model .item:hover .block-photo {
  transform: scale(1.04) !important;
}

.knowledge-base .block-model .item .contact h2 {
  font-size: 1.55rem !important;
  line-height: 1.5 !important;
  height: 3.0em !important;
  /* 固定高度，限制最多顯示兩行 */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin: 12px 0 8px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: left !important;
}

.knowledge-base .block-model .item .contact h2 a {
  color: #1e293b !important;
  font-weight: 600 !important;
  display: -webkit-box !important;
  height: auto !important;
}

.knowledge-base .block-model .item .contact h2 a:hover {
  color: #006bad !important;
}

.knowledge-base .block-model .item .contact p {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 5px !important;
  text-align: left !important;
  padding-right: 0 !important;
}

.knowledge-base .block-model .item .contact p cite {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  display: inline-block !important;
  margin: 0 0 6px 0 !important;
  float: none !important;
}

.knowledge-base .block-model .item .contact p strong,
.knowledge-base .block-model .item .contact p em {
  display: block !important;
  font-size: 1.25rem !important;
  color: #64748b !important;
  font-weight: normal !important;
  margin-top: 5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.knowledge-base .block-model .item .con-link {
  border-top: 1px solid #f1f5f9 !important;
  background: #fafafa !important;
  padding: 10px 18px !important;
  height: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.knowledge-base .block-model .item .con-link a {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}



/* 相簿 Lightbox 大圖關閉鍵防覆蓋 */
.fancybox-close {
  z-index: 99999 !important;
}


/* 活動相簿卡片設計 (無固定高度自適應，去除下方白色區塊) */
.photo-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px !important;
  background: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  overflow: hidden !important;
}

.photo-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: #00adba !important;
}

.photo-card a {
  display: block !important;
  position: relative !important;
  width: 100% !important;
}

.photo-card img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: filter 0.3s !important;
  display: block !important;
}

.photo-card img:hover {
  filter: brightness(0.9) !important;
}

.photo-card .hover-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  opacity: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.3s !important;
}

.photo-card a:hover .hover-overlay {
  opacity: 1 !important;
}

/* 彈窗拆分抵用券表單美化樣式 */
body.add-menubg {
  background-color: #f8fafc !important;
  font-family: 'Outfit', 'Inter', 'Microsoft JhengHei', sans-serif !important;
}

body.add-menubg .newBar {
  background: linear-gradient(135deg, #1b2a6c 0%, #2c5282 100%) !important;
  color: #fff !important;
  padding: 16px 24px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-bottom: 3px solid #00adba !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.add-menubg .add-page {
  padding: 30px 25px !important;
}

body.add-menubg .form-group {
  margin-bottom: 22px !important;
}

body.add-menubg .form-group label {
  font-weight: 600 !important;
  color: #4a5568 !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  display: inline-block !important;
}

body.add-menubg .form-group input,
body.add-menubg .form-group select,
body.add-menubg .form-group textarea {
  height: 42px !important;
  border: 1px solid #cbd5e0 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

body.add-menubg .form-group textarea {
  height: 80px !important;
}

body.add-menubg .form-group input[readonly] {
  background-color: #edf2f7 !important;
  color: #718096 !important;
  border-color: #cbd5e0 !important;
  cursor: not-allowed !important;
}

body.add-menubg .form-group input:focus,
body.add-menubg .form-group select:focus,
body.add-menubg .form-group textarea:focus {
  border-color: #00adba !important;
  box-shadow: 0 0 0 3px rgba(0, 173, 186, 0.15) !important;
  outline: none !important;
}

body.add-menubg img.ui-datepicker-trigger {
  vertical-align: middle !important;
  margin-left: 8px !important;
  cursor: pointer !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s !important;
}

body.add-menubg img.ui-datepicker-trigger:hover {
  opacity: 1 !important;
}

/* 刪除圖示按鈕精緻重設計 */
.btn-delete-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #fff5f5 !important;
  color: #e53e3e !important;
  border: 1px solid #fed7d7 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.btn-delete-icon:hover {
  background: #e53e3e !important;
  color: #fff !important;
  border-color: #e53e3e !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 10px rgba(229, 62, 62, 0.25) !important;
}

/* 明細表格 tr 滑動過渡 */
.info-list table tbody tr {
  transition: background-color 0.2s ease-in-out !important;
}

.info-list table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* 授權碼複製鈕 Hover 動畫 */
.info-list .label-default {
  transition: all 0.2s ease-in-out !important;
}

.info-list .label-default:hover {
  background: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   公司專區頁面客製化樣式 (僅適用於 .company-dashboard)
   ========================================================================== */
body.company-dashboard {
  background: #f4f6fc;
}

.company-dashboard {
  background: #f4f6fc;
  font-family: 'Outfit', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2d3748;
  padding: 45px 0;
}

.company-dashboard .dashboard-header {
  position: relative;
  background: linear-gradient(135deg, #1b2a6c 0%, #1e3a8a 50%, #0d9488 100%);
  border-radius: 20px;
  padding: 35px 40px;
  color: white;
  margin-bottom: 35px;
  box-shadow: 0 12px 30px rgba(27, 42, 108, 0.18);
  overflow: hidden;
}

.company-dashboard .header-main-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.company-dashboard .company-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.company-dashboard .company-avatar:hover {
  transform: scale(1.08) rotate(5deg);
}

.company-dashboard .avatar-text {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-dashboard .company-info-block {
  flex: 1;
  min-width: 250px;
}

.company-dashboard .dashboard-header h2 {
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-left: none;
  padding-left: 0;
  color: #fff;
}

.company-dashboard .header-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.company-dashboard .header-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.company-dashboard .header-badge.active-status {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-weight: 600;
}

.company-dashboard .header-bg-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, rgba(13, 148, 136, 0) 70%);
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}

.company-dashboard .company-nav-tabs {
  border: none;
  margin-bottom: 30px;
  display: flex;
  gap: 8px;
  background: #eef2f6;
  padding: 6px;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.company-dashboard .company-tab-btn {
  flex: 1;
  text-align: center;
  list-style: none;
}

.company-dashboard .company-tab-btn>li {
  display: block;
}

.company-dashboard .company-tab-btn>a {
  display: block;
  padding: 14px 20px;
  color: #4a5568;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: none !important;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.company-dashboard .company-nav-tabs .company-tab-btn.active>a {
  background: #1b2a6c !important;
  color: white !important;
  box-shadow: 0 10px 15px -3px rgba(27, 42, 108, 0.3), 0 4px 6px -4px rgba(27, 42, 108, 0.3);
}

.company-dashboard .company-nav-tabs .company-tab-btn:not(.active)>a:hover {
  background: #fff !important;
  color: #1b2a6c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.company-dashboard .card-pane {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  min-height: 450px;
  border: 1px solid #eef2f6;
  position: relative;
}

.company-dashboard .section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1b2a6c;
  margin-bottom: 30px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-dashboard .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

@media (max-width: 768px) {
  .company-dashboard .info-grid {
    grid-template-columns: 1fr;
  }

  .company-dashboard .company-nav-tabs {
    flex-direction: column;
    border-radius: 12px;
  }
}

.company-dashboard .info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-dashboard .info-label {
  font-size: 15px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-dashboard .info-label i {
  color: #0d9488;
  font-size: 14px;
}

.company-dashboard .info-value {
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #edf2f7;
  word-break: break-all;
  transition: all 0.2s ease;
}

.company-dashboard .info-value:hover {
  background: #fff;
  border-color: #cbd5e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.company-dashboard .info-value a {
  color: #1b2a6c;
  text-decoration: none;
  font-weight: 600;
}

.company-dashboard .info-value a:hover {
  color: #0d9488;
  text-decoration: underline;
}

.company-dashboard .info-value-block {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-dashboard .badge-primary {
  background-color: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid #bfdbfe;
}

.company-dashboard .badge-success {
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid #a7f3d0;
}

.company-dashboard .badge-secondary {
  background-color: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid #e5e7eb;
}

.company-dashboard .dashboard-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.company-dashboard .item-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.company-dashboard .item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: #93c5fd;
  background: #fff;
}

.company-dashboard .item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.company-dashboard .item-card:hover::before {
  background: linear-gradient(90deg, #1b2a6c, #0d9488);
}

.company-dashboard .item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 12px;
}

.company-dashboard .item-card-title {
  font-weight: 800;
  font-size: 17px;
  color: #1b2a6c;
}

.company-dashboard .item-card-body p {
  margin: 10px 0;
  font-size: 14px;
  color: #4a5568;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f8fafc;
  padding-bottom: 6px;
}

.company-dashboard .item-card-body p strong {
  color: #1a202c;
  font-weight: 600;
}

.company-dashboard .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #a0aec0;
}

.company-dashboard .empty-state i {
  font-size: 55px;
  margin-bottom: 20px;
  color: #cbd5e0;
  opacity: 0.7;
}

.company-dashboard .fade-in {
  animation: companyFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes companyFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-dashboard .conBg {
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* ==========================================================================
   回到最上面 (Back to Top) 懸浮按鈕樣式
   ========================================================================== */
#back-to-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  line-height: 46px !important;
  /* 扣除 border 的高度微調 */
  border-radius: 12px !important;
  background: linear-gradient(135deg, #1b2a6c 0%, #06b6d4 50%, #0d9488 100%) !important;
  background: #00adba !important;
  color: #ffffff !important;
  text-align: center !important;
  font-size: 20px !important;
  box-shadow: 0 8px 24px rgba(27, 42, 108, 0.3) !important;
  z-index: 9999 !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  animation: pulse-glow 2s infinite !important;
}

#back-to-top.show {
  opacity: 0.9 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


#back-to-top:hover {
  transform: translateY(-8px) scale(1.12) !important;
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.5) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #06b6d4 0%, #0d9488 50%, #1b2a6c 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

#back-to-top i {
  line-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
}

#back-to-top:hover i {
  animation: arrow-bounce 0.6s ease-in-out infinite alternate !important;
}

/* 呼吸發光脈衝動畫 */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5), 0 8px 24px rgba(27, 42, 108, 0.3);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(6, 182, 212, 0), 0 8px 24px rgba(27, 42, 108, 0.3);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0), 0 8px 24px rgba(27, 42, 108, 0.3);
  }
}

/* 箭頭微幅上下跳動動畫 */
@keyframes arrow-bounce {
  0% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* 桌機版隱藏手機選單 (防止 Mmenu JS 及滾動覆寫導致桌機出現手機選單) */
@media (min-width: 992px) {

  #MobileMenu,
  .pMenu-list,
  .mm-menu {
    display: none !important;
  }
}

/* 手機版隱藏回到最上面按鈕 */
@media (max-width: 767px) {
  #back-to-top {
    display: none !important;
  }
}

/* ==========================================================================
   前台廠商查詢清單 (Company Search List) 美化樣式
   ========================================================================== */
.member-list .item-list a.links {
  text-decoration: none !important;
  display: block;
  margin-bottom: 20px;
}

.member-list .item-list .item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(27, 42, 108, 0.03) !important;
  padding: 20px 25px !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: space-between !important;
  border-left: 5px solid #e2e8f0 !important;
}

/* Hover effect for the card */
.member-list .item-list a.links:hover .item {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 25px rgba(27, 42, 108, 0.08) !important;
  border-color: #1b2a6c !important;
  border-left-color: #00adba !important;
}

/* Company Name styling */
.member-list .item-list h1 {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
}

.member-list .item-list h1 strong {
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1b2a6c !important;
  height: auto !important;
  line-height: 1.4 !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0 !important;
  transition: color 0.3s ease !important;
}

.member-list .item-list a.links:hover h1 strong {
  color: #00adba !important;
}

/* Industry tags/badges list */
.member-list .item-list .btns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
}

.member-list .item-list .btns div {
  float: none !important;
  width: auto !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
}

.member-list .item-list a.links:hover .btns div {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

/* ==========================================================================
   前台廠商搜尋頁面 (company_search.php & company_search_list.php) 美化樣式
   ========================================================================== */
.member-industry .search-advanced {
  background: #ffffff !important;
  /* 清爽純白背景 */
  border: 1px solid #cbd5e1 !important;
  /* 細緻淺灰框 */
  /* 經典科技深青色 */
  border-radius: 12px !important;
  /* 科技銳利直角/微圓角 */
  padding: 24px !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 12px !important;
}

.member-industry .search-advanced .form-box {
  margin-bottom: 12px !important;
}

.member-industry .search-advanced label.control-label {
  color: #1b2a6c !important;
  /* 深海藍 */
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 38px !important;
  margin-bottom: 0 !important;
}

/* 複選範圍按鈕樣式 */
.member-industry .search-advanced .switch-field {
  display: flex !important;
  gap: 10px !important;
  padding: 0 !important;
}

.member-industry .search-advanced .switch-field input[type="checkbox"] {
  display: none !important;
}

.member-industry .search-advanced .switch-field label {
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: center !important;
  padding: 8px 18px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  /* 科技直角 */
  cursor: pointer !important;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 0 !important;
}

.member-industry .search-advanced .switch-field input[type="checkbox"]:checked+label {
  background-color: rgba(13, 148, 136, 0.1) !important;
  color: #0d9488 !important;
  /* 科技深青 */
  border-color: #0d9488 !important;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.15) !important;
}

/* 關鍵字搜尋欄位與按鈕 */
.member-industry .keyword-search-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.member-industry .search-input-group {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
}

.member-industry .search-input-group .input-group-addon {
  position: absolute !important;
  left: 12px !important;
  top: 13px !important;
  z-index: 10 !important;
  border: none !important;
  background: transparent !important;
  color: #0d9488 !important;
}

.member-industry .keyword-input {
  padding-left: 36px !important;
  height: 42px !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0px !important;
  /* 直角 */
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-industry .keyword-input:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.15) !important;
}

.member-industry .search-btn {
  background: linear-gradient(135deg, #1b2a6c 0%, #0d9488 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.member-industry .search-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3) !important;
  opacity: 0.95 !important;
}

/* 產業別卡片樣式 */
.member-industry .industry-list .item {
  background: #ffffff !important;
  /* 淸爽純白 */
  /* 深海藍指示線 */
  border-radius: 12px !important;
  /* 科技銳利直角 */
  padding: 22px 26px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  /*clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)) !important;
  科技切角 */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-industry .industry-list .item:hover {
  transform: translateY(-2px) !important;
  border-left-color: #0d9488 !important;
  /* 懸停時變爲深青色 */
  border-color: #93c5fd !important;
  box-shadow: 0 8px 25px rgba(27, 42, 108, 0.08) !important;
}

.member-industry .industry-list .item h1 {
  border: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

.member-industry .industry-list .item h1 strong {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #1b2a6c !important;
  /* 深海藍 */
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-right: 1em !important;
}

.member-industry .industry-list .item h1 strong::before {
  display: none !important;
  content: "◢" !important;
  color: #0d9488 !important;
  /* 經典青色三角形裝飾 */
  font-size: 14px !important;
}

.member-industry .industry-list .item h1 strong a {
  font-size: 1.6rem !important;
}

.member-industry .industry-list .item .btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 14px !important;
  padding: 0 !important;
}

.member-industry .industry-list .item .btns div {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

.member-industry .industry-list .item .btns a.links {
  display: inline-block !important;
  background-color: #f8fafc !important;
  /* 淺灰色按鈕 */
  color: #475569 !important;
  padding: 8px 18px !important;
  border-radius: 0px !important;
  /* 銳利直角 */
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  /* 切角 */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center !important;
}

.member-industry .industry-list .item .btns a.links:hover {
  background-color: #1b2a6c !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.08) !important;
}

/* ==========================================================================
   廠商列表項目樣式 (company_search_list.php)
   ========================================================================== */
.member-industry .member-list .item {
  background: #ffffff !important;
  /* 淸爽純白 */
  border: 1px solid #cbd5e1 !important;
  border-left: 5px solid #1b2a6c !important;
  /* 深海藍指示線 */
  border-radius: 0px !important;
  /* 科技銳利直角 */
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}

.member-industry .member-list .item:hover {
  transform: translateY(-2px) !important;
  border-left-color: #0d9488 !important;
  /* 懸停時變爲深青色 */
  border-color: #93c5fd !important;
  box-shadow: 0 8px 25px rgba(27, 42, 108, 0.06) !important;
}

.member-industry .member-list .item h1 {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.member-industry .member-list .item h1 strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1b2a6c !important;
  /* 深海藍 */
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.member-industry .member-list .item h1 strong::before {
  display: none !important;
  content: "◢" !important;
  color: #0d9488 !important;
  font-size: 13px !important;
}

.member-industry .member-list .item .btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  padding: 0 !important;
}

.member-industry .member-list .item .btns div {
  float: none !important;
  width: auto !important;
  padding: 4px 12px !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center !important;
}

.member-industry .member-list .item .btns div:hover {
  background-color: rgba(13, 148, 136, 0.08) !important;
  color: #0d9488 !important;
  border-color: #0d9488 !important;
}

/* ==========================================================================
   廠商詳細資訊樣式 (company_infor.php)
   ========================================================================== */
.company-detail-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 25px !important;
  border-bottom: 1px solid #cbd5e1 !important;
  padding-bottom: 12px !important;
}

.company-detail-title {
  color: #1b2a6c !important;
  font-size: 22px !important;
  font-weight: bold !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.company-detail-title::before {
  display: none !important;
  content: "◢" !important;
  color: #0d9488 !important;
  font-size: 16px !important;
}

.btn-back-custom {
  padding: 8px 24px !important;
  background: linear-gradient(135deg, #1b2a6c 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  border: none !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15) !important;
}

.btn-back-custom:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3) !important;
  opacity: 0.95 !important;
}

.company-info-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 30px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
}

.company-info-table td {
  border: 1px solid #cbd5e1 !important;
  padding: 15px 20px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.company-info-table td.label-cell {
  background-color: #f8fafc !important;
  color: #1b2a6c !important;
  width: 180px !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-right: 2px solid #0d9488 !important;
}

.company-info-table td.value-cell {
  background-color: #ffffff !important;
  color: #334155 !important;
}

.company-info-table td.value-cell a {
  color: #0d9488 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s !important;
}

.company-info-table td.value-cell a:hover {
  color: #1b2a6c !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   公司專區表單輸入框優化樣式 (company.php)
   ========================================================================== */
.company-dashboard .info-value:has(input),
.company-dashboard .info-value:has(textarea) {
  padding: 8px 16px !important;
  /* 微調以適應輸入框 */
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

.company-dashboard .info-value:has(input):focus-within,
.company-dashboard .info-value:has(textarea):focus-within {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}

.company-dashboard .info-value input.form-control,
.company-dashboard .info-value textarea.form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  width: 100% !important;
  outline: none !important;
  height: auto !important;
}

.company-dashboard .info-value.static-text {
  background: #f8fafc !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* 委員會職別篩選下拉選單 UI 美化 */
#tee_gro_no {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  background-size: 18px !important;
  padding: 8px 36px 8px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  width: 100% !important;
  height: 42px !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

#tee_gro_no:hover {
  border-color: #94a3b8 !important;
}

#tee_gro_no:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   登入密碼眼睛與 Google reCAPTCHA 徽章樣式 (member_login.php)
   ========================================================================== */
.eye-toggle-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eye-toggle-btn svg {
  width: 24px;
  height: 24px;
  transition: all 0.2s;
}

/* 隱碼狀態 (閉眼灰色) */
.eye-hidden .eye-open-icon {
  display: none;
}

.eye-hidden .eye-close-icon {
  display: inline-block;
  fill: #bbb;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
}

/* 明碼狀態 (睜眼亮綠) */
.eye-visible .eye-open-icon {
  display: inline-block;
  fill: #06C755;
  filter: drop-shadow(0 0 4px rgba(6, 199, 85, 0.4));
}

.eye-visible .eye-close-icon {
  display: none;
}

/* 隱藏 Google reCAPTCHA 徽章 */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* 鎖定不可編輯欄位之提示樣式 */
.locked-field {
  cursor: pointer;
  transition: color 0.2s;
}

.locked-field:hover {
  color: #0d9488;
  text-decoration: underline;
}

/* 手機版分頁不要固定懸浮，改為隨頁面流動於列表最下方，避免遮擋操作按鈕 */
@media (max-width: 767px) {
  .phone-page {
    clear: both !important;
    position: static !important;
    width: 100% !important;
    display: block !important;
    background-color: transparent !important;
    border: none !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: none !important;
    z-index: 1 !important;
  }
}

/* Fancybox Iframe lightbox 內滾動條修正，確保大螢幕下若內容過長按鈕亦可看見 */
.fancybox-type-iframe .fancybox-inner {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* 新增/修改參加人彈窗內部 (body.apBg) 滾動條修正，解決手機與大螢幕下滾動失效與送出鈕被截斷問題 */
body.apBg {
  height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media screen and (max-width: 767px) {

  .member-industry .industry-list .item .btns a.links {
    /* 強制換行 */

    display: inline-block !important;
    width: 100% !important;

  }

  .member-industry .industry-list .item .btns a.links::after,
  .member-industry .industry-list .item h1 strong a::after {
    display: none !important;
  }

  .member-industry .industry-list .item .btns div {
    width: 100% !important;
  }


  .member-industry .industry-list .item .btns div {
    padding-bottom: .6em !important;
    border: none !important;
  }

  .company-info-table td.label-cell {
    width: 150px !important;
  }

  .company-info-table td.value-cell {
    text-align: left !important;
  }

}

/* ==========================================================================
   前台 PCB 產業上市櫃營收分析 (revenue.php) 樣式
   ========================================================================== */
:root {
  --primary: #1971c2;
  --sub-sum-bg: #f1f3f5;
  /* 小類總和 (灰) */
  --major-total-bg: #e7f5ff;
  /* 大類總結統一顏色 (藍) */
}

.revenue-container {
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* 高質感 Mega Menu 彈出選擇面板美編 CSS */
#compPopdownPanel {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 16px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.comp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 2px solid #e0f2fe;
  padding-bottom: 14px;
}

.comp-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.6rem;
  color: #0f172a;
}

.comp-panel-title i {
  color: #2563eb;
  background: #dbeafe;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.4rem;
}

.comp-search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.comp-search-box input {
  padding: 8px 16px 8px 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 24px !important;
  font-size: 1.35rem !important;
  width: 240px !important;
  outline: none !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.comp-search-box input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18) !important;
  width: 280px !important;
}

.comp-search-box i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1.3rem;
  pointer-events: none;
}

.comp-close-btn {
  border: none !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.comp-close-btn:hover {
  background: #cbd5e1 !important;
  color: #0f172a !important;
  transform: scale(1.03);
}

.comp-hero-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.comp-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.comp-hero-btn.active {
  ring: 3px solid #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.4);
}

.comp-subtype-col {
  flex: 1 1 210px;
  min-width: 190px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.comp-subtype-col:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.comp-subtype-header {
  font-weight: 800;
  font-size: 1.4rem;
  color: #1e293b;
  margin-bottom: 12px;
  border-bottom: 2px solid #eff6ff;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-badge-btn {
  padding: 7px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-badge-btn:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.comp-badge-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  transform: scale(1.02);
}







.revenue-header {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.revenue-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.data-source {
  font-size: 1.28rem;
  color: #64748b;
  margin-top: 6px;
}

.revenue-header h2 {
  margin: 0;
  font-size: 2.4rem;
  color: #1b2a6c;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  font-size: 1.45rem;
}

.tab-group {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 8px;
}

.tab-btn {
  padding: 10px 22px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #64748b;
  transition: 0.2s;
}

.tab-btn.active {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #1b2a6c;
}

.controls select,
select {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 600;
}

/* 表格對齊與數字美化 (字型放大一倍) */
.table-area {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.revenue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  table-layout: auto;
}

.revenue-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  color: #334155;
  font-weight: 800;
  font-size: 1.4rem;
}

.revenue-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
  font-size: 1.4rem;
}

/* 數字與百分比欄位：強制等寬字型並右對齊 */
.num-cell {
  text-align: right !important;
  font-family: 'JetBrains Mono', monospace !important;
  padding-right: 30px !important;
  font-variant-numeric: tabular-nums;
}

/* 置中對齊 */
.text-center {
  text-align: center !important;
}

/* 灰底小類總和 */
.sum-row {
  background-color: var(--sub-sum-bg) !important;
  font-weight: bold;
}

/* 藍底大類總結 (統一顏色) */
.major-total-row {
  background-color: var(--major-total-bg) !important;
  font-weight: bold;
  border-top: 2px solid var(--primary) !important;
}

.up {
  color: #dc2626;
  font-weight: bold;
}

.down {
  color: #16a34a;
  font-weight: bold;
}

.chart-box {
  height: 450px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

/* 手機版 RWD 響應式優化 (revenue.php) */
@media (max-width: 768px) {
  .revenue-wrapper-area {
    padding: 0 !important;
    min-height: auto !important;
  }

  .revenue-container {
    padding: 10px 8px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .revenue-header {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }

  .revenue-header-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .revenue-header h2 {
    font-size: 1.35rem !important;
    margin-bottom: 4px !important;
  }

  .data-source {
    font-size: 0.85rem !important;
    margin-top: 2px !important;
  }

  .tab-group {
    width: 100% !important;
    display: flex !important;
  }

  .tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 10px !important;
    font-size: 1rem !important;
  }

  .controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 12px 14px !important;
    gap: 10px 14px !important;
    font-size: 1rem !important;
  }

  .controls select,
  select {
    width: auto !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    padding: 6px 12px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
  }

  #compBox {
    width: auto !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #dateBox {
    width: auto !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #dateBox select {
    width: auto !important;
    min-width: 80px !important;
  }

  .chart-box {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 350px !important;
    margin-bottom: 15px !important;
    border: none !important;
  }

  #mainChart {
    width: 100% !important;
    height: 100% !important;
  }

  .table-area {
    max-height: 500px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .revenue-table {
    min-width: 460px !important;
    font-size: 0.88rem !important;
  }

  .revenue-table th {
    font-size: 0.88rem !important;
    padding: 6px 4px !important;
  }

  .revenue-table td {
    font-size: 0.88rem !important;
    padding: 5px 4px !important;
  }

  .num-cell {
    padding-right: 6px !important;
  }
}

/* --- TPCA 產業數據儀表板樣式 --- */
.controls-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.segmented-control {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.segment {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.segment input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

.segment-label {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.segment input:checked~.segment-label {
  background-color: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.time-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-select-group select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 32px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  max-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.time-divider {
  color: #64748b;
  font-weight: 600;
}

@keyframes chartFadeIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chart-fade-in {
  animation: chartFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chart-container-dashboard {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  min-height: 450px;
  border: 1px solid #e2e8f0;
}

.hidden {
  display: none !important;
}

.bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.pie-wrapper {
  position: relative;
  width: 32%;
  max-width: 380px;
  height: 490px;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .controls-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pie-wrapper {
    width: 100%;
    max-width: 380px;
    height: 460px;
  }
}

/* 公司專區 - 地址組件響應式與美化 (僅影響 company.php) */
.company-dashboard .address-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 15px 20px;
  border-radius: 10px;
}

.company-dashboard .address-box .input-select,
.company-dashboard .address-box .form-group {
  margin-bottom: 0 !important;
}

.company-dashboard .address-box .input-select>div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 !important;
}

.company-dashboard .address-box .input-select .select-moon {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* 郵遞區號：固定適宜寬度 (80px) */
.company-dashboard .address-box .input-select .select-moon:nth-child(1) {
  flex: 0 0 80px !important;
  max-width: 85px !important;
  width: 80px !important;
}

/* 縣市下拉選單：彈性伸展 */
.company-dashboard .address-box .input-select .select-moon:nth-child(2) {
  flex: 1 1 100px !important;
  min-width: 95px !important;
}

/* 鄉鎮市區下拉選單：彈性伸展 */
.company-dashboard .address-box .input-select .select-moon:nth-child(3) {
  flex: 1 1 100px !important;
  min-width: 95px !important;
}

/* 詳細地址輸入框：獨立一行佔滿 */
.company-dashboard .address-box .input-select div:nth-child(4) {
  flex: 1 1 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-top: 2px !important;
}

/* 同登記地址按鈕容器 */
.company-dashboard .address-box .input-select div:nth-child(5) {
  flex: 1 1 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-top: 4px !important;
  text-align: right !important;
}

/* 表單輸入框與下拉選單細節控制 */
.company-dashboard .address-box input.form-control,
.company-dashboard .address-box select.form-control {
  height: 42px !important;
  line-height: 42px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #1e293b !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-dashboard .address-box input.form-control:focus,
.company-dashboard .address-box select.form-control:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
  outline: none !important;
}

/* 美化「同登記地址」按鈕與連結 */
.company-dashboard .address-box .btn-main,
.company-dashboard .address-box a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0d9488 !important;
  background-color: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.company-dashboard .address-box .btn-main:hover,
.company-dashboard .address-box a.btn:hover {
  background-color: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
}

@media (max-width: 767px) {
  .company-dashboard .address-box {
    padding: 12px 14px !important;
  }

  .company-dashboard .address-box .input-select>div {
    gap: 8px !important;
  }

  .company-dashboard .address-box input.form-control,
  .company-dashboard .address-box select.form-control {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;
  }
}

/* ==========================================================================
   市場資訊系列（上市櫃營收、進出口分析、全球產業趨勢儀表板）共用與專屬樣式
   ========================================================================== */
@keyframes chartEnter {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chart-fade-in {
  animation: chartEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 儀表板控制列卡片 */
.controls-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-label {
  font-weight: 700;
  font-size: 1.35rem;
  color: #334155;
}

.segmented-control {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.segment-btn {
  padding: 6px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}

.segment-btn:hover {
  color: #1b2a6c;
}

.segment-btn.active {
  background: #ffffff;
  color: #1b2a6c;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.segment {
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.segment input[type="radio"] {
  display: none;
}

.segment-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.2s ease;
  user-select: none;
}

.segment input[type="radio"]:checked+.segment-label {
  background: #ffffff;
  color: #1b2a6c;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single-time-select {
  height: 38px;
  padding: 4px 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  background-color: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.single-time-select:focus {
  border-color: #2563eb;
}

/* 產品結構與應用領域圓餅圖三欄並排 */
.pie-container-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 25px;
}

.pie-wrapper {
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 10px;
  min-height: 450px;
  height: 450px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
  .pie-container-grid {
    flex-direction: column;
  }

  .pie-wrapper {
    min-height: 380px;
    height: 380px;
  }
}

/* 表格強化字體與排版 */
.revenue-table th,
.revenue-table td {
  font-size: 1.35rem !important;
}

.revenue-table th {
  font-weight: 700 !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

/* 表格收合 / 展開按鈕通用樣式 */
.table-toggle-wrapper {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}

.table-toggle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 22px;
  padding: 8px 28px;
  font-weight: 700;
  font-size: 1.35rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
}

.table-toggle-btn:hover {
  background: #e2e8f0;
  color: #1b2a6c;
  border-color: #94a3b8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.table-toggle-btn:active {
  transform: translateY(0);
}

/* 首頁查看更多按鈕與書籍專區樣式 */
.btn-index-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1b2a6c !important;
  background: #ffffff;
  border-radius: 30px;
  transition: all 0.25s ease;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  font-family: "Noto Sans TC Light" !important;
  text-transform: uppercase;
}

.btn-index-more:hover {
  color: #ffffff !important;

  background-color: #1b2a6c !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(163, 163, 163, 0.8);
  transform: translateY(-2px);
}

.btn-index-more i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.ind-books-list .block-model .item img.object-fit {
  height: 240px !important;
  object-fit: contain !important;
  background-color: #f8fafc;
  padding: 6px;
}

/* 電腦版頁尾地圖按鈕 (Footer Map Button) */
.corp .web .acc .acc-sec {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.corp .web .acc .acc-sec .acc-text {
  flex: 1;
}

.corp .web .acc .acc-sec p.acc-map {
  margin: 6em 0 0 10px;
  padding: 0;
  border-left: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: -2em;
}

.corp .web .acc a.ico-map {
  display: block;
  width: 80px;
  height: 84px;
  padding-top: 48px;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: none;
  font-family: "Source Sans Pro", "Noto Sans TC", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-align: center;
  color: #1b2a6c;
  text-decoration: none !important;
  background-image: url(../images/icon_map.svg);
  background-repeat: no-repeat;
  background-position: center 12px;
  background-size: 31px auto;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.corp .web .acc a.ico-map:hover {
  background-color: #f8fdfe;
  border-color: #00adba;
  box-shadow: 0 8px 22px rgba(0, 173, 186, 0.25);
  transform: translateY(-3px);
  color: #00adba;
}

/* ========================================================
   手機版選單頂部左上角語言切換按鈕（簡約俐落設計）
======================================================== */
.mm-navbars--top .mm-navbar a.mm-btn--lang {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 28px !important;
  padding: 0 !important;
  margin-top: 10px !important;
  margin-left: 12px !important;
  margin-right: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif !important;
  letter-spacing: 0.5px !important;
  color: #1b2a6c !important;
  background-color: #f1f5fa !important;
  border: 1.5px solid #1b2a6c !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  flex: 0 0 50px !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.mm-navbars--top .mm-navbar a.mm-btn--lang:hover,
.mm-navbars--top .mm-navbar a.mm-btn--lang:active {
  background-color: #1b2a6c !important;
  color: #ffffff !important;
}

/* ========================================================
   手機版選單下方相關資訊與服務 (website_down) 淡雅柔和風格
======================================================== */

/* 分隔標題列（淡藍灰底色＋柔和灰色標籤） */
.pMenu-list .mm-listview li.pMenu-down-divider {
  margin-top: 24px !important;
  padding: 12px 20px 7px 20px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  color: #8a9bb0 !important;
  background-color: #f6f8fb !important;
  border-top: 1px solid #e8eef5 !important;
  border-bottom: 1px solid #e8eef5 !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
}

/* 項目背景：淡雅柔和底色 */
.pMenu-list .mm-listview li.pMenu-down-item {
  background-color: #fbfcfe !important;
  border-bottom: 1px solid #edf2f7 !important;
  transition: all 0.2s ease !important;
}

.pMenu-list .mm-listview li.pMenu-down-item:after {
  border-bottom: 1px solid #edf2f7 !important;
  inset-inline-start: 20px !important;
}

/* 文字樣式：柔和深灰藍色 */
.pMenu-list .mm-listview li.pMenu-down-item > a,
.pMenu-list .mm-listview li.pMenu-down-item > span,
.pMenu-list .mm-listview li.pMenu-down-item > .mm-listitem__text {
  font-size: 1.05em !important;
  font-weight: 600 !important;
  color: #475569 !important;
  padding-left: 20px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  text-decoration: none !important;
}

/* 右側箭頭淡灰色化 */
.pMenu-list .mm-listview li.pMenu-down-item > .mm-btn--next:after {
  border-color: #a0aec0 !important;
}

/* Hover / 點擊互動高亮 */
.pMenu-list .mm-listview li.pMenu-down-item:hover,
.pMenu-list .mm-listview li.pMenu-down-item:active {
  background-color: #f0f4f9 !important;
}

.pMenu-list .mm-listview li.pMenu-down-item:hover > a,
.pMenu-list .mm-listview li.pMenu-down-item:hover > span,
.pMenu-list .mm-listview li.pMenu-down-item:hover > .mm-listitem__text {
  color: #1b2a6c !important;
}

.pMenu-list .mm-listview li.pMenu-down-item:hover > .mm-btn--next:after {
  border-color: #1b2a6c !important;
}

/* ========================================================
   手機版首頁頂部導覽列右上角語言切換按鈕
======================================================== */
.pMenu .logo {
  position: relative !important;
}

.pMenu .logo a.lang-phone-btn {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 28px !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif !important;
  letter-spacing: 0.5px !important;
  color: #1b2a6c !important;
  background-color: #f1f5fa !important;
  border: 1.5px solid #1b2a6c !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  z-index: 20 !important;
}

.pMenu .logo a.lang-phone-btn:hover,
.pMenu .logo a.lang-phone-btn:active {
  background-color: #1b2a6c !important;
  color: #ffffff !important;
}

/* 季刊專刊公司推薦專屬樣式 (quarterly_company.php) */
.qp-top-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 25px;
}

.qp-cover-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.qp-cover-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.qp-badge-quarter {
  color: #00adba;
  font-size: 18px;
  font-weight: normal;
  padding: .2em 1em;
  padding-left: 0;
  margin-right: 1em;
  display: inline-block;
  margin-bottom: 1em;
  border-right: 2px solid #1b2a6c;
}

.qp-title-item {
  padding-top: 2.8em !important;
}

.qp-title-item span {
  color: #64748b;
  font-size: 1.8rem !important;
  margin-top: 1.8rem !important;
}

.qp-badge-tag {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 15px;
  display: inline-block;
  margin-left: 6px;
}

.qp-title {
  font-size: 24px;
  font-weight: 800;
  color: #1b2a6c;
  margin: 12px 0 10px 0;
  line-height: 1.4;
  font-family: "Noto Sans TC Light";
}

.qp-desc {
  background: #f8fafc;
  padding: 12px 18px;
  margin-top: 1.5em;
  font-size: 18px;
  color: #475569;
}

/* 列表項目卡片樣式 (List 模式) */
.qp-company-list .item {
  border: none;
  padding: .8em !important;
  margin-bottom: 18px;
  background: transparent;
}

.qp-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 26px;
  transition: all 0.2s ease-in-out;
}

.qp-card:hover {
  transform: translateY(-2px);
}

.qp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.qp-comp-title {
  font-size: 19px;
  font-weight: 700;
  color: #1b2a6c;
  margin: 0;
  line-height: 1.35;
}

.qp-comp-en {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 400;
}

.qp-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.qp-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  margin-bottom: .5em;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.qp-badge-ind {
  background: #12a8b3ff;
  color: #fff;
  border: 1px solid #dbeafe;
}

.qp-badge-kind {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.qp-badge-tax {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

.qp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 24px;
  font-size: 16px;
  line-height: 1.6;
}

.qp-info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.qp-info-item.full-width {
  grid-column: 1 / -1;
}

.qp-info-label {
  color: #64748b;
  font-weight: 600;
}

.qp-info-value {
  color: #1e293b;
  font-weight: 500;
  word-break: break-word;
}

.qp-product-box,
.qp-intro-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px 12px !important;
  margin: 10px 0 !important;
}

.qp-product-title {
  font-size: 16px;
  font-weight: 700;
  color: #1b2a6c;
  margin-bottom: 6px;
  margin-top: 6px;
  text-align: center;
  padding: 1em !important;
}

.qp-product-desc {
  font-size: 15px;
  color: #000;
  line-height: 1.65;
  padding: .5em 1em !important;
  margin: 1em !important;
}

.qp-web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #1b2a6c 0%, #253982 100%);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(27, 42, 108, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.qp-web-btn:hover {
  background: linear-gradient(135deg, #253982 0%, #1e3a8a 100%);
  box-shadow: 0 4px 10px rgba(27, 42, 108, 0.3);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.qp-search-inp {
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 9px 16px;
  font-size: 13.5px;
  width: 100%;
  transition: border-color 0.2s;
}

.qp-search-inp:focus {
  border-color: #1b2a6c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 108, 0.1);
}

.qp-company-list.item-list .item:hover,
.qp-company-list .item:hover {
  background-color: #fff !important;
}

/* Blocks (方塊卡片模式) */
#blocksViewArea .block-model .item {
  margin-bottom: 22px;
}

.block-model .qp-block-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
}

.block-model .qp-block-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.qp-block-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.qp-block-info-row {
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* ==========================================================================
   前台晚宴活動與報名頁面 (dinner.php & dinner_finish.php)
   ========================================================================== */
.dinner-page-wrap {
  background-color: #f6f8fb;
  padding-top: 30px;
  padding-bottom: 70px;
  min-height: 80vh;
}
.dinner-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9edf4;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}
.dinner-header-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #eef2ff;
  color: #1b2a6c;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid #c7d2fe;
}
.dinner-main-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 20px;
}
.dinner-pic-box {
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 480px;
  text-align: center;
  background: #000;
}
.dinner-pic-box img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.dinner-content-body {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 25px;
}
.dinner-content-body p {
  margin-bottom: 15px;
}
.dinner-content-body img,
.finish-custom-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px;
}
.dinner-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f3f4f6;
  color: #1b2a6c;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
}
.dinner-file-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
}
.form-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b2a6c;
  border-left: 5px solid #1b2a6c;
  padding-left: 12px;
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-group-custom {
  margin-bottom: 18px;
}
.form-group-custom label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.form-group-custom label .req-star {
  color: #ef4444;
  margin-left: 3px;
}
.form-control-custom {
  width: 100%;
  height: 44px;
  padding: 8px 14px;
  font-size: 15px;
  color: #1f2937;
  background-color: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.form-control-custom:focus {
  border-color: #1b2a6c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 42, 108, 0.12);
}
.applicant-item-box {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px 20px 10px 20px;
  margin-bottom: 20px;
  position: relative;
}
.applicant-item-box .row {
  display: flex;
  flex-wrap: wrap;
}
.applicant-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px dashed #d1d5db;
  padding-bottom: 10px;
}
.applicant-index-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-del-applicant {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-del-applicant:hover {
  background: #fecaca;
  color: #b91c1c;
}
.btn-add-applicant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1b2a6c;
  border: 1.5px dashed #1b2a6c;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.btn-add-applicant:hover {
  background: #eef2ff;
}
.btn-submit-dinner {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #1b2a6c 0%, #253992 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(27, 42, 108, 0.25);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit-dinner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 42, 108, 0.35);
}
.limit-hint-badge {
  font-size: 13px;
  font-weight: normal;
  color: #6b7280;
  background: #e5e7eb;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* 晚宴完成頁 (dinner_finish.php) 專屬樣式 */
.dinner-finish-wrap {
  background-color: #f6f8fb;
  padding-top: 40px;
  padding-bottom: 80px;
  min-height: 80vh;
}
.finish-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9edf4;
  padding: 40px 35px;
  margin-bottom: 30px;
}
.finish-success-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  text-align: center;
  font-size: 38px;
  margin: 0 auto 18px;
  border: 2px solid #a7f3d0;
}
.finish-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 8px;
}
.finish-custom-content {
  margin-bottom: 25px !important;
}
.finish-custom-content p:last-child {
  margin-bottom: 0 !important;
}
.finish-header-subtitle {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 25px !important;
}
.finish-info-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 28px !important;
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  box-sizing: border-box;
}
.finish-applicant-title,
.finish-info-box + h3 {
  margin-top: 0 !important;
}
.finish-info-box .info-row,
.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
}
.finish-info-box .info-row:first-child,
.info-row:first-child {
  margin-top: 0 !important;
}
.finish-info-box .info-row:last-child,
.finish-info-box .info-row:last-of-type,
.info-row:last-child,
.info-row:last-of-type {
  margin-bottom: 0 !important;
}
.info-label {
  width: 120px;
  color: #6b7280;
  font-weight: 600;
  flex-shrink: 0;
}
.info-val {
  color: #1f2937;
  font-weight: 600;
}
.finish-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.finish-table th {
  background: #1b2a6c;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.finish-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.finish-table tr:hover td {
  background-color: #f9fafb;
}
.finish-btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.btn-finish-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #ffffff;
  color: #1b2a6c;
  border: 1.5px solid #1b2a6c;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s;
}
.btn-finish-home:hover {
  background: #eef2ff;
}
.btn-finish-activity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1b2a6c;
  color: #ffffff;
  border: 1.5px solid #1b2a6c;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s;
}
.btn-finish-activity:hover {
  background: #253992;
  color: #ffffff;
}

