/* ============================================================
   Organization / 组织架构 — list page
   Aligned with ksgcc-theme.css color system
   Navy: #1e3a5f  Red: #d63031  Gold: #e1a948
   Surface: #fff / #f5f7fa  Text: #2d3436
   ============================================================ */

/* === Banner === */
.org-banner {
  position: relative;
  width: 100%;
  min-width: 1200px;
  height: 280px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 60%, #1e3a5f 100%);
  overflow: hidden;
  margin-top: 98px;
}
.org-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/statics/images/shanghui/member_line.webp') center center no-repeat;
  background-size: cover;
  opacity: 0.18;
}
.org-banner-content {
  position: relative;
  z-index: 5;
  width: 1200px;
  margin: -25px auto 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 10px;
}
.org-banner-en {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.org-banner-line {
  width: 50px;
  height: 3px;
  background: #d63031;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.org-banner-title {
  font-size: 38px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 6px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.org-banner-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin: 0;
}
.org-banner-slant {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: #f5f7fa;
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
  z-index: 6;
}

/* === Main === */
.org-main {
  width: 100%;
  min-width: 1200px;
  background: #f5f7fa;
  padding-bottom: 80px;
}
.org-container {
  width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
}

/* === Breadcrumb === */
.org-breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}
.org-breadcrumb a {
  color: #636e72;
  text-decoration: none;
  transition: color 0.2s;
}
.org-breadcrumb a:hover {
  color: #d63031;
}
.org-breadcrumb-sep {
  margin: 0 10px;
  color: #ddd;
}
.org-breadcrumb-current {
  color: #1e3a5f;
  font-weight: 600;
}

/* === Tabs === */
.org-tabs {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  gap: 4px;
}
.org-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.org-tab-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #d63031;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.org-tab-item:hover {
  background: #f5f7fa;
}
.org-tab-item.active {
  background: #1e3a5f;
  box-shadow: 0 4px 20px rgba(30,58,95,0.3);
}
.org-tab-item.active::after {
  width: 24px;
  background: #e1a948;
}
.org-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #636e72;
  transition: color 0.25s;
}
.org-tab-item.active .org-tab-icon {
  color: rgba(255,255,255,0.8);
}
.org-tab-item:hover .org-tab-icon {
  color: #1e3a5f;
}
.org-tab-item.active:hover .org-tab-icon {
  color: rgba(255,255,255,0.8);
}
.org-tab-text {
  font-size: 15px;
  font-weight: 600;
  color: #636e72;
  letter-spacing: 1.5px;
  transition: color 0.25s;
  white-space: nowrap;
}
.org-tab-item.active .org-tab-text {
  color: #fff;
}
.org-tab-item:hover .org-tab-text {
  color: #1e3a5f;
}
.org-tab-item.active:hover .org-tab-text {
  color: #fff;
}

/* === Panels Wrapper — Layout Container === */
.org-panels-wrap {
  /* Default: single column */
}
.org-panels-wrap.org-wrap-single {
  display: block;
}
.org-panels-wrap.org-wrap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* === Panel === */
.org-panel {
  display: none;
}
.org-panel.active {
  display: block;
}

/* 理事会 panels in grid mode: half width */
.org-wrap-grid .org-panel.active {
  width: calc(50% - 12px);
}

/* === Member Card — Default: Full-width horizontal (会长/秘书长) === */
.org-member-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  display: flex;
  gap: 45px;
  transition: box-shadow 0.3s, transform 0.3s;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.org-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #d63031, #e1a948);
  border-radius: 0 2px 2px 0;
}
.org-member-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .org-member-card:hover { transform: none; }
}

/* Photo — Left Side */
.org-member-photo {
  width: 220px;
  min-height: 260px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
  box-shadow: 0 4px 20px rgba(30,58,95,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.org-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}
.org-member-card:hover .org-member-photo img {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .org-member-card:hover .org-member-photo img { transform: none; }
}

/* Photo placeholder */
.org-member-photo-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.org-member-photo.no-photo img {
  display: none;
}
.org-member-photo.no-photo {
  background: linear-gradient(135deg, #f0f2f5 0%, #e2e6ea 100%);
}

/* Info — Right Side */
.org-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 5px;
}
.org-member-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
}
.org-member-name {
  font-size: 28px;
  font-weight: 800;
  color: #1e3a5f;
  margin: 0 0 12px;
  letter-spacing: 3px;
  line-height: 1.3;
}
.org-member-title-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #d63031;
  letter-spacing: 2px;
  padding: 6px 16px;
  background: rgba(214,48,49,0.06);
  border-radius: 6px;
  border: 1px solid rgba(214,48,49,0.1);
}

/* Content */
.org-member-content {
  flex: 1;
  font-size: 15px;
  color: #2d3436;
  line-height: 2;
}
.org-member-content p {
  margin-bottom: 12px;
}
.org-member-content img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
.org-member-content:empty::after {
  content: '';
  display: block;
}

/* === 理事会 Grid — Compact cards via wrapper === */
.org-wrap-grid .org-member-card {
  padding: 24px 28px;
  min-height: 180px;
  gap: 24px;
  margin-bottom: 0;
}
.org-wrap-grid .org-member-card::before {
  width: 3px;
}
.org-wrap-grid .org-member-card:hover {
  transform: translateY(-2px);
}
.org-wrap-grid .org-member-photo {
  width: 130px;
  min-height: 160px;
}
.org-wrap-grid .org-member-name {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.org-wrap-grid .org-member-title-badge {
  font-size: 12px;
  padding: 4px 12px;
}
.org-wrap-grid .org-member-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
}
.org-wrap-grid .org-member-content {
  font-size: 14px;
  line-height: 1.8;
}

/* =============================================================
   会长专属 — 烫金华丽卡片（上图下文）
   ============================================================= */
.org-panel[data-do="hz"] .org-member-card {
  flex-direction: row;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #fffef9 0%, #fdfaf2 100%);
  border: 2px solid #d4a853;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px rgba(212,168,83,0.08),
    0 10px 50px rgba(164,117,38,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
  min-height: auto;
}
.org-panel[data-do="hz"] .org-member-card::before {
  width: 60px;
  height: 60px;
  background: transparent;
  border-top: 2px solid #d4a853;
  border-left: 2px solid #d4a853;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
  top: 14px;
  left: 14px;
  z-index: 3;
}
.org-panel[data-do="hz"] .org-member-card::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid #d4a853;
  border-right: 2px solid #d4a853;
  border-radius: 0 0 4px 0;
  pointer-events: none;
}
.org-panel[data-do="hz"] .org-member-card:hover {
  box-shadow:
    0 0 0 4px rgba(212,168,83,0.15),
    0 16px 56px rgba(164,117,38,0.16),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* 会长照片 — 左侧完整展示不裁切 */
.org-panel[data-do="hz"] .org-member-photo {
  width: 40%;
  min-height: auto;
  border-radius: 14px 0 0 14px;
  border: none;
  box-shadow: none;
  background: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.org-panel[data-do="hz"] .org-member-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* 会长信息区 — 右侧居中 */
.org-panel[data-do="hz"] .org-member-info {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(232,201,122,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(212,168,83,0.06) 0%, transparent 50%),
    transparent;
}
.org-panel[data-do="hz"] .org-member-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 联席主席卡片 — 同会长布局 */
.org-panel[data-do="lxzx"] .org-member-card {
  flex-direction: row;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #fffef9 0%, #fdfaf2 100%);
  border: 2px solid rgba(212,168,83,0.6);
  border-radius: 16px;
  box-shadow:
    0 0 0 4px rgba(212,168,83,0.06),
    0 10px 50px rgba(164,117,38,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  min-height: auto;
  position: relative;
  overflow: hidden;
}
.org-panel[data-do="lxzx"] .org-member-photo {
  width: 40%;
  min-height: auto;
  border-radius: 14px 0 0 14px;
  border: none;
  box-shadow: none;
  background: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.org-panel[data-do="lxzx"] .org-member-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.org-panel[data-do="lxzx"] .org-member-info {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.org-panel[data-do="lxzx"] .org-member-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 会长姓名 — 烫金大字 */
.org-panel[data-do="hz"] .org-member-name {
  font-size: 36px;
  letter-spacing: 8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #6b5210, #8b6914, #a67c2e, #c9953c, #d4a853, #c9953c, #a67c2e, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(139,105,20,0.2));
}

/* 会长职位标签 — 金色醒目 */
.org-panel[data-do="hz"] .org-member-title-badge {
  font-size: 16px;
  letter-spacing: 4px;
  padding: 8px 24px;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(135deg, #8b6914, #a67c2e, #d4a853, #e8c97a, #d4a853, #a67c2e, #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 6px;
  position: relative;
}
.org-panel[data-do="hz"] .org-member-title-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212,168,83,0.04);
  border-radius: 6px;
  z-index: -1;
}

/* 会长分隔线 — 金色 */
.org-panel[data-do="hz"] .org-member-header {
  border-bottom: 1px solid rgba(212,168,83,0.2);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

/* 会长卡片移动端适配 */
@media (max-width: 768px) {
  .org-panel[data-do="hz"] .org-member-card {
    flex-direction: column;
  }
  .org-panel[data-do="hz"] .org-member-photo {
    width: 100%;
    min-height: auto;
    border-radius: 14px 14px 0 0;
    padding: 16px;
  }
  .org-panel[data-do="hz"] .org-member-info {
    padding: 24px 20px 28px;
  }
  .org-panel[data-do="hz"] .org-member-name {
    font-size: 26px;
    letter-spacing: 4px;
  }
  .org-panel[data-do="lxzx"] .org-member-card {
    flex-direction: column;
  }
  .org-panel[data-do="lxzx"] .org-member-photo {
    width: 100%;
    border-radius: 14px 14px 0 0;
    padding: 16px;
  }
  .org-panel[data-do="lxzx"] .org-member-info {
    padding: 24px 20px 28px;
  }
}
