/* 律所列表页面样式 - 从 Lawfirmquery.vue 转换 */
.image-grid-container {
  max-width: var(--max-width-view); width: 80vw; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  padding: 10px; background-color: #fff;
}
.image-item {
  max-width: 280px; width: 19vw; aspect-ratio: 1 / 1;
  border-radius: 4px; box-shadow: 0 0 4px rgba(0,0,0,0.2); position: relative;
}
.image-item .card {
  height: 100%; min-height: 320px; background-color: #fff; border: 1px solid #eee;
  border-radius: 6px; padding: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.image-item .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.image-item .card .logo {
  width: 85%; height: 40%; margin: 0 auto; display: flex; align-items: center;
  border-radius: 4px; margin-bottom: 8px; overflow: hidden;
}
.image-item .card .logo img { width: 100%; height: auto; }
.image-item .card .firm-name {
  font-size: 18px; font-weight: 600; margin: 8px 0 4px; color: var(--primary-color);
  text-align: center; border-top: #eee 1px solid; padding: 8px 0; margin-top: 18px;
}
.image-item .card .full-name,
.image-item .card .website,
.image-item .card .style-feature,
.image-item .card .desc {
  font-size: var(--font-size-base); color: #666; margin: 4px 0; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.image-item .card .full-name span,
.image-item .card .website span { color: #000; }
.image-item .card .desc { color: #000; line-height: 1.55; font-size: 12px; }
.image-item .card .website a { color: #007bff; text-decoration: none; }
.image-item .card .website a:hover { text-decoration: underline; }
.image-item .image-text {
  display: none; width: 100%; height: 50%; background-color: rgba(0,0,0,0.4);
  position: absolute; bottom: 0; color: #fff; cursor: pointer;
  justify-content: center; align-items: end; padding: 35px 0;
}
.image-item .image-text .image-text-more {
  display: flex; justify-content: space-between; padding: 5px 15px; width: 60%;
  border-radius: 20px; border: var(--primary-color) 1px solid;
  background-color: #fe9906; color: #fff !important; cursor: pointer;
}
.image-item:hover .image-text { display: flex; }
.title-deta { margin: 40px auto; }
.title-PC { display: block; }
.title-web { display: none; }
@media (max-width: 768px) {
  .title-PC { display: none !important; }
  .title-web { display: block; }
  .processing {
    width: 100%;
    padding: 18px 16px 28px;
  }
  .processing .title-deta {
    width: 100% !important;
    margin: 0 auto 18px !important;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .processing .title-deta .brand-title {
    justify-content: center;
    margin: 0;
    line-height: 1.4;
  }
  .processing .title-deta .search-wrap {
    width: 100%;
    margin: 0;
    gap: 8px;
  }
  .processing .title-deta .search-input {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
  }
  .processing .title-deta .search-btn {
    width: 72px;
    height: 44px;
    flex: 0 0 72px;
    padding: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
  }
  .processing .image-screen {
    width: 100%;
    margin: 0 auto 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  .processing .image-screen span {
    width: 100%;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ececec;
    border-radius: 4px;
    background: #f7f8fa;
    font-size: 13px;
    line-height: 1;
  }
  .processing .image-screen span.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
  }
  .processing .image-grid-container {
    width: 100%;
    max-width: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }
  .processing .image-item {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 6px;
    box-shadow: none;
  }
  .processing .image-item .card {
    width: 100%;
    height: 100%;
    min-height: 248px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .processing .image-item .card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .processing .image-item .card .logo {
    width: 100%;
    max-width: 108px;
    height: 92px;
    margin: 0 auto 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
  }
  .processing .image-item .card .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .processing .image-item .card .firm-name {
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 9px 2px 7px;
    border-top: 1px solid #eee;
    border-bottom: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .processing .image-item .card .full-name,
  .processing .image-item .card .website,
  .processing .image-item .card .style-feature {
    width: 100%;
    min-width: 0;
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.5;
  }
  .processing .image-item .card .full-name {
    margin-top: auto;
  }
  .processing .image-item .card .style-feature {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .processing .image-item .image-text {
    display: block !important;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
  }
  .processing .image-item .image-text .image-text-more {
    display: none;
  }
  .processing .declare {
    margin: 12px 0 0 !important;
    font-size: 11px;
    line-height: 1.5;
  }
  .paging {
    padding: 14px 12px 20px;
  }
}

@media (max-width: 360px) {
  .processing {
    padding-right: 12px;
    padding-left: 12px;
  }
  .processing .image-screen {
    gap: 6px;
  }
  .processing .image-screen span {
    height: 34px;
    font-size: 12px;
  }
  .processing .image-grid-container {
    gap: 8px;
  }
  .processing .image-item .card {
    min-height: 232px;
    padding: 8px;
  }
  .processing .image-item .card .logo {
    max-width: 88px;
    height: 76px;
  }
  .processing .image-item .card .firm-name {
    font-size: 14px;
  }
  .processing .image-item .card .full-name,
  .processing .image-item .card .website,
  .processing .image-item .card .style-feature {
    font-size: 11px;
  }
}
