/* 服务生态 — CooperationView.vue / 栏目：服务生态 */

.eco-page {
  background: #fff;
}

.eco-hero {
  color: #fff;
  padding: 48px 0;
  background: linear-gradient(171deg, #003973f0 0%, #00245d 55%, #003872fa 100%);
}

.eco-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.eco-hero h1 {
  margin: 0 0 12px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.eco-hero p {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Tab */
.eco-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.eco-tabs__inner {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.eco-tab {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.eco-tab:hover {
  color: #111827;
}

.eco-tab.is-active {
  color: #1a3a6e;
  border-bottom-color: #1a3a6e;
}

.eco-panel {
  display: none;
  padding: 32px 0;
  background: #f3f4f6;
}

.eco-panel.is-active {
  display: block;
}

.eco-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.eco-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 白卡片区块 */
.eco-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.eco-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eco-block__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.eco-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a3a6e;
  text-decoration: none;
  white-space: nowrap;
}

.eco-more:hover {
  color: #142d55;
  text-decoration: none;
}

.eco-more svg {
  width: 16px;
  height: 16px;
}

/* 服务商 4×2 */
.eco-sp-grid {
      display: flex;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
  .eco-sp-grid {
    /* grid-template-columns: repeat(4, 1fr); */
  }
}

.eco-sp-card { display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    width: 23%;
    margin: 10px;
}

.eco-sp-card:hover {
  background: rgba(26, 58, 110, 0.05);
  border-color: rgba(26, 58, 110, 0.3);
  text-decoration: none;
}

.eco-sp-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(26, 58, 110, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.eco-sp-card__ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.eco-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
}

.eco-is-hidden {
  display: none !important;
}

.eco-tag:empty {
  display: none;
}

.eco-sp-card__ico svg {
  width: 18px;
  height: 18px;
  color: #1a3a6e;
}

.eco-sp-card__body {
  min-width: 0;
}

.eco-sp-card__body h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.eco-sp-card__body p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 海外渠道 3 列 */
.eco-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .eco-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .eco-channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eco-channel-card {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  transition: background 0.15s;
}

.eco-channel-card:hover {
  background: #f3f4f6;
}

.eco-channel-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.eco-channel-card__top svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #1a3a6e;
}

.eco-channel-card h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.eco-channel-card__company {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.eco-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.eco-tag--primary {
  color: #1a3a6e;
  background: rgba(26, 58, 110, 0.1);
}

.eco-tag--emerald {
  color: #047857;
  background: #d1fae5;
}

/* 运营中心 3 列 */
.eco-center-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .eco-center-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

a.eco-center-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: none;
}

a.eco-center-card:hover,
a.eco-center-card:focus {
  text-decoration: none;
}

.eco-center-card {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  transition: background 0.15s;
}

.eco-center-card:hover {
  background: #f3f4f6;
}

.eco-center-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.eco-center-card__ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.eco-center-card__ico svg {
  width: 16px;
  height: 16px;
  color: #1a3a6e;
}

.eco-center-card h3 {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.eco-center-card h3::before,
.eco-center-card h3::after {
  display: none;
  content: none;
}

.eco-center-card p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  border: none;
}

.eco-center-card p.is-empty {
  color: #d1d5db;
}

/* 协会 4 列 */
.eco-assoc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .eco-assoc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eco-assoc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.eco-assoc-card__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.eco-assoc-card__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.eco-assoc-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

/* Tab2：合作申请 */
.eco-settle-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .eco-settle-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.eco-benefits__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.eco-benefits__title svg {
  width: 20px;
  height: 20px;
  color: #1a3a6e;
}

.eco-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: background 0.15s;
}

.eco-benefit-item:hover {
  background: rgba(26, 58, 110, 0.05);
}

.eco-benefit-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #1a3a6e;
}

.eco-benefit-item span {
  font-size: 0.875rem;
  color: #374151;
}

.eco-form-wrap__title {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

/* 协议勾选（iframe 外备用层） */
.eco-form-agree--fallback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}

.eco-form-agree--fallback.is-hidden {
  display: none !important;
}

.eco-form-agree--fallback input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1a3a6e;
  cursor: pointer;
}

.eco-form-agree--fallback label {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  cursor: pointer;
}

.eco-form-agree--fallback a {
  color: #1a3a6e;
  text-decoration: none;
}

.eco-form-agree--fallback a:hover {
  text-decoration: underline;
}

/* 提交成功提示（约 2 秒） */
.eco-form-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%) scale(0.95);
  padding: 20px 28px;
  max-width: 90vw;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  background: rgba(26, 58, 110, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eco-form-toast.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 合作申请表单区（stl:form 可能 iframe） */
.eco-form-col .el-form-item__label-wrap,
.eco-form-col .el-form-item__content,
.eco-form-col .el-form-item__label {
  margin-left: 0 !important;
}

.eco-form-col .el-form-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.eco-form-col .el-form-item__label {
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.eco-form-col .el-input__inner,
.eco-form-col .el-textarea__inner {
  border-radius: 8px;
  font-size: 16px;
}

/* 合作申请 iframe 内表单（由 CooperationView.js 注入 link 引用本文件） */
.eco-coop-iframe-form.el-form,
.el-form.eco-coop-iframe-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 16px !important;
  row-gap: 20px !important;
}

.eco-coop-iframe-form .el-form-item:not(.eco-half),
.eco-coop-iframe-form .eco-form-agree,
.eco-coop-iframe-form .eco-form-submit {
  grid-column: 1 / -1 !important;
}

.eco-coop-iframe-form .el-form-item.eco-half {
  grid-column: span 1 !important;
}

.eco-coop-iframe-form .el-form-item {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
}

.eco-coop-iframe-form .el-form-item__label-wrap {
  float: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
}

.eco-coop-iframe-form .el-form-item__label {
  float: none !important;
  text-align: left !important;
  margin-left: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

.eco-coop-iframe-form .el-form-item.eco-req .el-form-item__label::after {
  content: " *";
  color: #ef4444;
  margin-left: 2px;
}

.eco-coop-iframe-form .el-form-item.is-required .el-form-item__label::before {
  color: #ef4444 !important;
}

.eco-coop-iframe-form .el-form-item__content {
  margin-left: 0 !important;
  width: 100% !important;
}

.eco-coop-iframe-form .el-input,
.eco-coop-iframe-form .el-textarea {
  width: 100% !important;
}

.eco-coop-iframe-form .el-input__inner,
.eco-coop-iframe-form .el-textarea__inner {
  height: 40px;
  border-radius: 8px !important;
  font-size: 16px !important;
}

.eco-coop-iframe-form .el-textarea__inner {
  min-height: 120px !important;
  height: auto !important;
  padding: 10px 16px !important;
}

.eco-coop-iframe-form .eco-form-agree {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 12px 0 8px !important;
}

.eco-coop-iframe-form .eco-form-agree input {
  width: 16px !important;
  height: 16px !important;
  margin-top: 3px !important;
  accent-color: #1a3a6e !important;
}

.eco-coop-iframe-form .eco-form-agree label {
  font-size: 14px !important;
  color: #6b7280 !important;
}

.eco-coop-iframe-form .eco-form-agree a {
  color: #1a3a6e !important;
}

.eco-coop-iframe-form .eco-form-submit .el-button {
  width: 100% !important;
  height: 48px !important;
  background: #1a3a6e !important;
  border-color: #1a3a6e !important;
  border-radius: 8px !important;
}
