/* ===== Portal 通用页面样式 ===== */

/* 页面头部 */
.page-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 48px 0 40px;
  color: #fff;
  margin-bottom: 24px;
}

.page-hero.light {
  background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
}

.page-hero .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.page-hero-actions {
  display: flex;
  gap: 10px;
}

.page-hero-actions .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.page-hero-actions .btn:hover {
  background: rgba(255,255,255,0.35);
}

.page-hero-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-chip {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-search input {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  width: 180px;
  transition: border-color var(--transition);
}

.filter-search input:focus { border-color: var(--primary); width: 220px; }

/* 瀑布流 */
.masonry {
  column-count: 3;
  column-gap: 16px;
}

.masonry-2 { column-count: 2; }
.masonry-4 { column-count: 4; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .masonry { column-count: 2; }
  .masonry-4 { column-count: 3; }
}

@media (max-width: 768px) {
  .masonry, .masonry-2, .masonry-4 { column-count: 1; }
}

/* 通用卡片 */
.portal-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.portal-card .card-img {
  width: 100%;
  object-fit: cover;
}

.portal-card .card-body { padding: 16px; }

.portal-card .card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.portal-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--text);
}

.portal-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portal-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.portal-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.portal-card .mini-tag {
  padding: 1px 6px;
  background: var(--bg);
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-muted);
}

/* 专家卡片 */
.expert-card .expert-header {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.expert-card .expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}

.expert-card .expert-info h3 { font-size: 16px; margin-bottom: 2px; }
.expert-card .expert-title { font-size: 12px; color: var(--primary); }
.expert-card .expert-company { font-size: 12px; color: var(--text-muted); }
.expert-card .expert-bio {
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-card .expert-tags {
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 商机卡片 */
.biz-card .biz-budget {
  color: #f5222d;
  font-weight: 600;
  font-size: 14px;
}

.biz-card .biz-publisher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 伙伴卡片 */
.partner-card {
  text-align: center;
  padding: 24px 16px;
}

.partner-card .partner-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}

.partner-card .partner-slogan {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* 活动卡片 */
.event-card .event-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fff7e6;
  color: #d46b08;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.event-card .event-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--text-secondary); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}

.pagination button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button.active,
.pagination button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 店铺详情页 */
.shop-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.shop-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 24px 32px;
  color: #fff;
}

.shop-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-profile img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 3px solid #fff;
  object-fit: cover;
}

.shop-profile h1 { font-size: 24px; font-weight: 700; }
.shop-profile p { font-size: 14px; opacity: 0.9; }

.shop-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0;
}

.shop-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.shop-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-item {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  transition: all var(--transition);
}

.product-item:hover { background: var(--primary-light); color: var(--primary); }

.shop-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shop-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.shop-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.shop-contact-item:last-child { border-bottom: none; }

/* 活动详情块渲染 */
.event-block-hero {
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.event-block-hero img { width: 100%; height: 100%; object-fit: cover; }

.event-block-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
}

.event-block-hero h1 { font-size: 32px; font-weight: 700; }
.event-block-hero p { font-size: 16px; opacity: 0.9; margin-top: 8px; }

.event-block-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}

.event-block-richtext {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
  word-break: break-word;
}

.event-block-richtext h2 {
  margin: 1.2em 0 0.6em;
  font-size: 1.4em;
  font-weight: 700;
}

.event-block-richtext h3 {
  margin: 1em 0 0.5em;
  font-size: 1.15em;
  font-weight: 700;
}

.event-block-richtext p {
  margin: 0 0 0.85em;
}

.event-block-richtext ul,
.event-block-richtext ol {
  margin: 0 0 0.85em;
  padding-left: 1.5em;
}

.event-block-richtext img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}

.event-block-richtext video {
  display: block;
  max-width: 100%;
  margin: 16px 0;
  border-radius: 8px;
  background: #000;
}

.event-block-richtext a {
  color: var(--primary);
  text-decoration: underline;
}

.event-schedule { margin-bottom: 20px; }

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.schedule-item .time {
  font-weight: 600;
  color: var(--primary);
  min-width: 60px;
  font-size: 14px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.speaker-card {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

.speaker-card .name { font-weight: 600; font-size: 14px; }
.speaker-card .title { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 人脉页面 */
.network-layout {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 16px;
  min-height: calc(100vh - 200px);
}

.network-sidebar,
.network-chat-list {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.network-panel-header {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.network-panel-body { padding: 8px; }

.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.friend-item:hover,
.friend-item.active { background: var(--primary-light); }

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-name { font-size: 13px; font-weight: 500; }
.friend-status { font-size: 11px; color: var(--text-muted); }

.chat-area {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  min-height: 400px;
  max-height: 500px;
}

.chat-msg {
  margin-bottom: 12px;
  max-width: 70%;
}

.chat-msg.mine { margin-left: auto; text-align: right; }

.chat-msg .bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg:not(.mine) .bubble {
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.mine .bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg .time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.chat-input-area input:focus { border-color: var(--primary); }

/* 关于我们 */
.about-hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f5ff 0%, #e6fffb 100%);
  margin-bottom: 32px;
}

.about-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.about-hero p { font-size: 16px; color: var(--text-secondary); max-width: 700px; margin: 0 auto; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-card .icon { font-size: 36px; margin-bottom: 12px; }
.about-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
}

.contact-item .label { color: var(--text-muted); min-width: 60px; }

.about-team-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.about-team-item:last-child { border-bottom: none; }

.about-team-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.6;
}

.about-team-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 992px) {
  .network-layout { grid-template-columns: 1fr; }
  .shop-content { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
