/* 交流園地內容區：最大寬度 1200px、水平置中（與列表頁一致） */
.community-content-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.community-page .frame-6.community-page-content,
.member-detail-page  {
  max-width: 1200px;
}

.community-page .frame-6.community-page-content {
  padding-top: 24px;
  padding-bottom: 60px;
}

.community-page {
  background-color: #f0f7f4;
  min-height: 100vh;
}

.member-page .member-community-wrap.community-page {
  min-height: auto;
  max-width: 1200px;
  background-color: transparent;
}

.member-page .member-community-wrap .community-filter-bar {
  background: #e8f5e9;
}

.member-page .member-community-wrap .community-page-content {
  align-self: stretch;
  width: 100%;
}

.community-page-content .mp-title {
  margin-bottom: var(--UI-spaceing-spacing-24);
}

.community-page .community-header {
  margin-bottom: 20px;
  padding-top: 24px;
}

.community-page .community-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
}

.community-page .community-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
  max-width: 1200px;
  margin-bottom: 28px;
  padding: 16px var(--main-frame-padding, 40px);
  box-sizing: border-box;
  background: #e8f5e9;
  border-radius: 0;
}

.community-page .community-industry-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.community-page .community-industry-filter label {
  font-size: 14px;
  color: #2e7d32;
  white-space: nowrap;
}

.community-page .community-select-wrap {
  position: relative;
  min-width: 200px;
}

.community-page .community-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url('/static/front/img/icon-arrow-down-12.svg') no-repeat center / contain;
  pointer-events: none;
}

.community-page .community-select-wrap select {
  width: 100%;
  min-width: 200px;
  padding: 10px 36px 10px 16px;
  border: 1px solid #c5d5ce;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #333;
  appearance: none;
  cursor: pointer;
}

.community-page .community-search {
  position: relative;
  min-width: 260px;
  max-width: 420px;
  margin-left: auto;
}

.community-page .community-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #c5d5ce;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.community-page .community-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

@media (max-width: 576px) {
  .community-page .community-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .community-page .community-industry-filter {
    width: 100%;
  }

  .community-page .community-select-wrap,
  .community-page .community-select-wrap select {
    width: 100%;
    min-width: 0;
  }

  .community-page .community-search {
    max-width: none;
    width: 100%;
  }
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.member-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.member-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.member-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.member-card-logo {
  height: 56px;
  min-width: 0;
  max-width: 100%;
  width: auto;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
  justify-self: start;
}

.member-card-logo:not(:has(img)) {
  min-width: 56px;
}

.member-card-logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.member-card-industry {
  font-size: 12px;
  color: #888;
  justify-self: end;
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

.member-card-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.member-card-tags {
  display: none; /* HashTag 暫時隱藏，功能與資料保留 */
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  min-height: 22px;
}

.member-card-tags span {
  font-size: 12px;
  color: #999;
}

.member-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.member-card-footer .location {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 團體會員內容頁 --- */
.member-detail-page .member-detail-stack {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.member-detail-page {
  background-color: #fff;
}

.member-detail-frame {
  background-color: #fff;
}

.member-detail-header {
  width: 100%;
  align-self: stretch;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 28px 0;
  box-sizing: border-box;
}

.member-detail-header .member-detail-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
}

.member-detail-page .detail-logo {
  height: 72px;
  min-width: 72px;
  width: auto;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.member-detail-page .detail-logo img {
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}

.member-detail-header-text {
  flex: 1;
  min-width: 0;
}

.member-detail-page .detail-name-zh {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
  line-height: 1.35;
}

.member-detail-page .detail-name-en {
  font-size: 15px;
  color: #666;
  margin: 0 0 14px;
  line-height: 1.4;
}

.member-detail-page .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 14px;
  color: #444;
}

.member-detail-page .detail-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.member-detail-page .detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.member-detail-page .detail-meta-item i {
  color: #43a047;
  font-size: 15px;
  width: 1em;
  text-align: center;
}

.member-detail-page .detail-meta-item a {
  color: inherit;
  text-decoration: none;
}

.member-detail-page .detail-meta-item a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.member-detail-banner {
  width: 100%;
  align-self: stretch;
  line-height: 0;
  overflow: hidden;
  margin: 0;
}

.member-detail-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.member-detail-body {
  width: 100%;
  align-self: stretch;
  background-color: #f0f7f4;
  padding: 24px 0 60px;
  margin: 0;
}

.member-detail-body .community-content-wrap {
  padding-top: 0;
}

.member-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  padding: 8px 0 0;
}

@media (max-width: 768px) {
  .member-detail-layout {
    grid-template-columns: 1fr;
  }
}

.member-section-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 24px;
}

.member-section-card .member-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #43a047;
  color: #1a1a1a;
  line-height: 1.4;
}

.member-rich-content {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.member-rich-content p {
  margin: 0 0 0.75em;
}

.member-rich-content p:last-child {
  margin-bottom: 0;
}

.member-rich-content h1,
.member-rich-content h2,
.member-rich-content h3,
.member-rich-content h4,
.member-rich-content h5,
.member-rich-content h6 {
  display: block;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 1.25em 0 0.5em;
}

.member-rich-content h1:first-child,
.member-rich-content h2:first-child,
.member-rich-content h3:first-child,
.member-rich-content h4:first-child,
.member-rich-content h5:first-child,
.member-rich-content h6:first-child {
  margin-top: 0;
}

.member-rich-content h1 { font-size: 1.5em; }
.member-rich-content h2 { font-size: 1.35em; }
.member-rich-content h3 { font-size: 1.2em; }
.member-rich-content h4 { font-size: 1.1em; }
.member-rich-content h5 { font-size: 1em; }
.member-rich-content h6 { font-size: 0.9em; }

.member-rich-content strong,
.member-rich-content b {
  font-weight: 700;
}

.member-rich-content em,
.member-rich-content i {
  font-style: italic;
}

.member-rich-content ul,
.member-rich-content ol {
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}

.member-rich-content ul {
  list-style: disc outside;
}

.member-rich-content ol {
  list-style: decimal outside;
}

.member-rich-content li {
  margin-bottom: 0.35em;
}

.member-rich-content li:last-child {
  margin-bottom: 0;
}

.member-rich-content ul ul,
.member-rich-content ol ol,
.member-rich-content ul ol,
.member-rich-content ol ul {
  margin-top: 0.35em;
  margin-bottom: 0;
}

.member-rich-content a {
  color: #2e7d32;
  text-decoration: underline;
}

.member-rich-content a:hover {
  color: #43a047;
}

.member-rich-content blockquote {
  margin: 1em 0;
  padding: 0.75em 0 0.75em 1em;
  border-left: 4px solid #43a047;
  color: #555;
}

.member-rich-content img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.member-rich-content table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  border-spacing: 0;
}

.member-rich-content th,
.member-rich-content td {
  padding: 10px 12px;
  border: 1px solid #e5ebe7;
  text-align: left;
  vertical-align: top;
}

.member-rich-content th {
  background: #f0f7f4;
  font-weight: 700;
  color: #1a1a1a;
}

.member-contact-card.member-section-card {
  border: 1px solid #e5ebe7;
}

.member-contact-card .member-contact-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  color: #2a3541;
  line-height: 1.3;
}

.member-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.member-contact-item:last-of-type {
  margin-bottom: 24px;
}

.member-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-contact-icon i {
  color: #43a047;
  font-size: 18px;
  line-height: 1;
}

.member-contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.member-contact-label {
  font-size: 12px;
  color: #9e9e9e;
  line-height: 1.4;
}

.member-contact-value {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  word-break: break-word;
}

.member-contact-value a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
}

.member-contact-value a:hover {
  color: #2e7d32;
}

.member-contact-item--website .member-contact-value a {
  color: #43a047;
}

.member-contact-item--website .member-contact-value a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .member-detail-banner img {
    height: 180px;
  }

  .member-detail-header {
    padding: 20px 16px;
  }

  .member-detail-header .member-detail-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
  }

  .member-detail-header-text {
    width: 100%;
  }

  .member-detail-page .detail-logo {
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }

  .member-detail-page .detail-logo img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 72px;
    object-fit: contain;
  }

  .member-detail-page .detail-name-zh {
    font-size: 22px;
  }
}

.community-empty {
  text-align: center;
  padding: 48px;
  color: #888;
  grid-column: 1 / -1;
}

.element-desktop .tag .text-wrapper-member {
  margin-top: -1px;
  font-weight: var(--TC-body-medium-font-weight, 500);
  color: #2e7d32;
  font-size: var(--TC-body-medium-font-size, 14px);
  line-height: var(--TC-body-medium-line-height, 1.4);
  font-family: var(--TC-body-medium-font-family, inherit);
}
