/* 列表页样式 */
.zjg-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 筛选条件区域 */
.filter-section {
    background: white;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-item label {
    font-weight: 500;
    color: #333;
    margin-right: 15px;
    min-width: 60px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    padding: 6px 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.filter-tag:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.filter-tag.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 搜索区域 */
.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: #007bff;
}

.search-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

.reset-btn {
    padding: 10px 20px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 机构卡片列表样式 */
.institution-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.institution-item {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 32px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    animation: slideInUp 0.6s ease-out;
}

.institution-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.institution-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin-right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.institution-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.institution-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.institution-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    text-align: left;
}

.institution-tags {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.institution-tags .tag {
    display: inline-block;
    background: #f0f6ff;
    color: #1976d2;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 13px;
    border: none;
}

.institution-location {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.institution-location .location-icon {
    margin-right: 4px;
    background: url('../img/address_icon.png') no-repeat center center;
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    flex-shrink: 0;
    display: inline-block;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 空数据状态 */
.empty-data {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-data p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .institution-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .institution-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .institution-item {
        padding: 16px 12px;
    }
    .institution-logo { 
        margin-right: 16px; 
    }
}

@media (max-width: 768px) {
    .zjg-container {
        padding: 10px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-item label {
        margin-bottom: 10px;
    }
    
    .search-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .zjg-container {
        padding: 5px;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .institution-logo img {
        width: 60px;
        height: 60px;
    }
    
    .institution-name {
        font-size: 14px;
    }
    
    .institution-tags .tag {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 详情页样式 */
.zjg-detail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 面包屑导航 */
.xhb_crumb {
    margin-bottom: 20px;
    color: #666;
}

.xhb_crumb a {
    color: #007bff;
    text-decoration: none;
}

.xhb_crumb i {
    margin: 0 8px;
    color: #999;
}

/* 顶部两栏布局 */
.institution-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
}

/* 左侧主要信息 */
.institution-main {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-box {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-info {
    flex: 1;
}

.main-info .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px;
    text-align: left;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #007bff;
    border-radius: 4px !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-style: normal;
}

.tag.vip-tag {
    background: #fff1e6;
    color: #ff6b00;
}

.share-btn {
    position: absolute;
    top: 24px;
    right: 24px;
}

.share-btn button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn button:hover {
    background: #f0f7ff;
}

.share-btn i {
    margin-right: 4px;
    font-size: 16px;
}

.main-desc {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

.main-desc p{
    text-indent: 2em;
}

/* 右侧基础信息 */
.institution-side {
    background:#fff url(../img/shop-info-bg.png) no-repeat top center;   
    background-size: 100% auto;
    border-radius: 8px;
    padding: 20px;
    padding-top: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.side-header i {
    font-size: 20px;
    color: #007bff;
    margin-right: 8px;
}

.side-header span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.info-row .label {
    color: #666;
    min-width: 80px;
    margin-right: 8px;
}

.info-row .value {
    color: #333;
    flex: 1;
}

/* Tab区域 */
.institution-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #e8e8e8;
}

.tab-list {
    display: flex;
}

.tab {
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab.active {
    color: #007bff;
    font-weight: 500;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.more-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #007bff;
}

.tab-content {
    padding: 24px;
}

/* 详细信息区域 */
.institution-detail-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 24px;
}

.tab {
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #007bff;
    font-weight: bold;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-panel {
    display: none;
}

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

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #007bff;
}

.section-content {
    color: #666;
    line-height: 1.6;
}

/* 资质证书列表 */
.qualification-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.qualification-item {
    text-align: center;
}

.qualification-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qualification-item p {
    color: #333;
    font-size: 14px;
}

/* 商品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 宽高比 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

.product-price small {
    font-size: 12px;
    font-weight: normal;
}

/* 分页样式 */
.pagination-container {
    text-align: center;
    padding: 20px 0;
}

/* 商品列表响应式 */
@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 15px;
        height: 42px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* 空数据提示 */
.empty-tip {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 详情页响应式适配 */
@media screen and (max-width: 1200px) {
    .institution-top {
        grid-template-columns: 1fr 280px;
    }
}

@media screen and (max-width: 992px) {
    .institution-top {
        grid-template-columns: 1fr;
    }

    .institution-side {
        order: -1;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-btn {
        position: static;
        margin-top: 16px;
        text-align: center;
    }

    .share-btn button {
        width: 100%;
        justify-content: center;
    }

    .tags {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .zjg-detail-container {
        padding: 10px;
    }

    .tab {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 响应式布局 */
@media screen and (max-width: 1400px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

/* 轮播图样式 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-list {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(255,255,255,0.8);
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图响应式 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 15px;
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 10px;
        font-size: 13px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
