/* ===== 文档协作页 - Hero ===== */

.collab-hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  text-align: center;
}

.collab-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}

.collab-desc {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

.collab-category-hint {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cat-label {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

.cat-label--basic {
  background: #e8f5e9;
  color: #2e7d32;
}

.cat-label--office {
  background: #e3f2fd;
  color: #1565c0;
}

.cat-label--special {
  background: #fce4ec;
  color: #c62828;
}


/* ===== Tab 导航 ===== */

.collab-tabs-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 80px;
  background: var(--white);
}

.collab-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 0;
  position: relative;
}

.collab-tab {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.collab-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: background 0.25s;
}

.collab-tab:hover {
  background: var(--bg);
}

.collab-tab.is-active {
  background: var(--bg);
}

.collab-tab.is-active::after {
  background: var(--primary);
}

.collab-tab-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s;
}

.collab-tab.is-active .collab-tab-icon {
  transform: scale(1.08);
}

.collab-tab-name {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-light);
  transition: color 0.2s;
}

.collab-tab.is-active .collab-tab-name {
  color: var(--primary);
}

.collab-tab-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.tag--basic {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag--office {
  background: #e3f2fd;
  color: #1565c0;
}

.tag--special {
  background: #fce4ec;
  color: #c62828;
}


/* ===== 面板内容 ===== */

.collab-panels {
  position: relative;
  overflow: hidden;
}

.collab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 24px;
  animation: panelFadeIn 0.35s ease;
}

.collab-panel.is-active {
  display: grid;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-content {
  padding-right: 24px;
}

.panel-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.panel-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.panel-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-features li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #3c4257;
}

.panel-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
}

.panel-btn-more {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.panel-btn-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-height: 320px;
}

.panel-img {
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}


/* ===== 响应式 ===== */

@media (max-width: 980px) {
  .collab-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-bottom: none;
  }

  .collab-tab {
    min-width: 0;
    max-width: none;
    padding: 18px 12px 16px;
    border-radius: 12px;
  }

  .collab-tab::after {
    bottom: 0;
  }

  .collab-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 24px;
  }

  .panel-content {
    padding-right: 0;
  }

  .panel-visual {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .collab-hero {
    padding: 48px 0 28px;
  }

  .collab-desc {
    font-size: 15px;
  }

  .collab-category-hint {
    gap: 10px;
  }

  .collab-tab {
    padding: 14px 8px 12px;
  }

  .collab-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collab-tab-icon {
    width: 32px;
    height: 32px;
  }

  .collab-tab-name {
    font-size: 12px;
  }

  .panel-title {
    font-size: 24px;
  }

  .panel-features li {
    font-size: 14px;
  }
}
