/* 知識庫卡片精緻重設計 */
.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: 13px;
  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: 6px !important;
  background: linear-gradient(135deg, #1b2a6c 0%, #06b6d4 50%, #0d9488 100%) !important;
  background-color: #fff !important;
  color: #ffffff !important;
  text-align: center !important;
  font-size: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !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: 1px 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: 0px !important;
  /* 科技直角 */
  cursor: pointer !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;
  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: 0px !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;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !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: 18px !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 .industry-list .item h1 strong::before {
  display: none !important;
  content: "◢" !important;
  color: #0d9488 !important;
  /* 經典青色三角形裝飾 */
  font-size: 14px !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;
  border: 1px solid #e2e8f0 !important;
  text-decoration: none !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !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: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !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: 17px !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 {
  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 {
  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;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !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;
}