/* components.css - 可复用业务组件 */

/* 通栏 Banner */
.banner-full {
  position: relative;
  padding: 48px 0;
  background: linear-gradient(90deg, #0a3a73 0%, #1767b8 50%, #0a3a73 100%);
  color: var(--color-white);
  overflow: hidden;
}

.banner-full::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 80 L20 40 L35 40 L35 80 M40 80 L40 30 L55 30 L55 80 M60 80 L60 45 L75 45 L75 80' stroke='rgba(255,255,255,0.08)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.banner-full-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-full-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  font-style: italic;
}

.banner-full-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.banner-full-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.banner-full-btn {
  padding: 10px 28px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.banner-full-btn:hover {
  background-color: #e55f00;
}

/* 左侧筛选面板 */
.filter-panel {
  width: 320px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.filter-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.filter-panel-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-panel-tab.active {
  color: var(--color-primary);
  background-color: rgba(230, 0, 18, 0.06);
}

.filter-panel-body {
  padding: 20px;
}

.filter-panel-tab-content {
  display: none;
}

.filter-panel-tab-content.active {
  display: block;
}

.filter-panel .btn-primary {
  width: 100%;
  height: 40px;
  margin-top: 8px;
}

/* 房产卡片 */
.property-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0e7ef, #c5d3e3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.property-card-image img,
.property-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  border-radius: 3px;
}

.property-card-body {
  padding: 14px;
}

.property-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.property-card-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color-gray);
}

.property-card-tags span {
  padding: 2px 8px;
  background-color: #f0f4f8;
  color: var(--color-secondary);
  font-size: 11px;
  border-radius: 3px;
}

.property-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.property-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.property-card-price small {
  font-size: 12px;
  font-weight: 400;
}

.property-card-area {
  font-size: 13px;
  color: var(--color-gray);
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-light-gray);
}

.property-card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 园区卡片 */
.park-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.park-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.park-card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d6e4f0, #b8d4e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.park-card-image svg {
  width: 60px;
  height: 60px;
  opacity: 0.4;
}

.park-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.park-card-body {
  padding: 14px;
}

.park-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.park-card-location {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f0f4f8;
  color: var(--color-secondary);
  font-size: 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.park-card-industry {
  font-size: 12px;
  color: var(--color-light-gray);
}

.park-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.park-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.park-card-price small {
  font-size: 12px;
  font-weight: 400;
}

.park-card-area {
  font-size: 13px;
  color: var(--color-gray);
}

.park-card-location2 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-light-gray);
}

.park-card-location2 svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 新闻项 */
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-image {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8eef4, #d1dce8);
  overflow: hidden;
}

.news-item-image img,
.news-item-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-title:hover {
  color: var(--color-primary);
}

.news-item-summary {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-meta {
  font-size: 12px;
  color: var(--color-light-gray);
}

/* 厂房指南右侧列表：无图、无简介 */
.guide-right .news-item {
  padding: 14px 0;
}

.guide-right .news-item-image {
  display: none;
}

.guide-right .news-item-summary {
  display: none;
}

.guide-right .news-item-title {
  margin-bottom: 6px;
}

/* 新闻大项（厂房指南左侧） */
.news-featured {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
}

.news-featured-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c5d3e3, #a3bdd4);
}

.news-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-white);
}

.news-featured-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-featured-meta {
  font-size: 12px;
  opacity: 0.9;
}

/* 筛选行 */
.filter-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  flex-shrink: 0;
  width: 90px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.filter-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options a,
.filter-options span {
  padding: 4px 12px;
  font-size: 13px;
  color: var(--color-gray);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-options a:hover,
.filter-options a.active,
.filter-options span:hover,
.filter-options span.active {
  background-color: rgba(230, 0, 18, 0.08);
  color: var(--color-primary);
}

/* 二级导航 */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.sub-nav a,
.sub-nav span {
  padding: 6px 18px;
  font-size: 14px;
  color: var(--color-gray);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-nav a:hover,
.sub-nav a.active,
.sub-nav span:hover,
.sub-nav span.active {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* 咨询卡片 */
.consult-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.consult-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.consult-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), #3a8bd8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
}

.consult-card-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.consult-card-info p {
  font-size: 12px;
  color: var(--color-light-gray);
}

.consult-card-phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 16px 0;
}

.consult-card .btn-primary {
  width: 100%;
}

/* 文章正文 */
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-dark);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

/* 媒体查询 */
@media (max-width: 1023px) {
  .filter-panel {
    width: 280px;
  }

  .banner-full-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .banner-full-tags {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .filter-panel {
    width: 100%;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .filter-label {
    width: auto;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item-image {
    width: 100%;
  }

  .news-featured {
    height: 220px;
  }

  .property-card-image {
    aspect-ratio: 4 / 3;
  }
}
