﻿/* ===== 左右两栏布局 ===== */
.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* 标题 */
.detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* 元信息：分类 / 省市 */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
}

.tag-cat {
    background: #eff6ff;
    color: #2563eb;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .meta-item svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

/* 图片区（非必填）：无图时给本节点加 class="gallery hidden" 整块隐藏 */
.gallery {
    margin-bottom: 22px;
}

.gallery-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

    .gallery-grid img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 8px;
        cursor: zoom-in;
        border: 1px solid #e5e7eb;
        transition: transform .2s;
    }

        .gallery-grid img:hover {
            transform: scale(1.02);
        }

.hidden {
    display: none !important;
}

/* 正文内容 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #2563eb;
}

.content-body {
    font-size: 15px;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    line-height:30px;
}

/* ===== 右侧联系方式栏 ===== */
.sidebar {
    position: sticky;
    top: 20px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    padding: 8px 0;
}

    .contact-line .label {
        width: 72px;
        color: var(--text-sub);
        flex-shrink: 0;
    }

    .contact-line .value {
        font-weight: 500;
    }

    .contact-line .phone {
        color: #2563eb;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: .5px;
    }

.action-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

    .btn:hover {
        opacity: .9;
    }

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.item-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    transition: 0.2s;
}

    .item-card:hover {
        box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    }

.img-wrap {
    width: 130px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e8e8e8;
}

    .img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    /* 无图时隐藏图片容器 */
    .img-wrap.empty {
        display: none;
    }

.info-wrap {
    flex: 1;
    min-width: 0;
}

.info-title {
    font-size: 18px;
}

    .info-title a {
        color: #2563eb;
        text-decoration: none;
    }

        .info-title a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

.info-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.info-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.area-filter {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 18px;
    margin-bottom: 20px;
}

    .area-filter .label {
        font-size: 14px;
        color: #555;
        margin-right: 10px;
        display: inline-block;
    }

.area-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.area-list-city {
    padding: 20px 20px 0 20px;
}

    .area-list a {
        display: block;
        padding: 4px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: 0.2s;
    }

        .area-list a:hover {
            border-color: #2563eb;
            color: #2563eb;
        }

        .area-list a.active {
            background: #2563eb;
            color: #fff;
            border-color: #2563eb;
        }