/* ============================================
   建筑筛选栏样式 - 修复版
   ============================================ */
.bcp-filter-container {
    background: var(--bg-card, #fff);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    border: 1px solid var(--border-primary, transparent);
}

.bcp-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 筛选行基础样式 */
.bcp-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
}

/* 标签样式 - 固定宽度对齐 */
.bcp-filter-label {
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: 14px;
    width: 80px;
    min-width: 80px;
    padding-top: 6px;
    flex-shrink: 0;
    text-align: left;
}

/* 选项容器 */
.bcp-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    padding-top: 2px;
}

/* 二级分类行 - 与上级左对齐 */
.bcp-sub-row {
    padding-left: 0;
    margin-left: 0px; /* 与标签宽度相同，实现左对齐 */
    border-left: none;
}

/* 单选按钮样式 */
.bcp-radio {
    display: flex;
    cursor: pointer;
    margin: 0;
}

.bcp-radio input {
    display: none;
}

.bcp-radio span {
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary, #555);
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.bcp-radio:hover span {
    color: #007cba;
}

.bcp-radio.active span {
    border-color: #007cba;
    color: #007cba;
    background: #e8f4fc;
}

/* 复选框样式 */
.bcp-checkbox-group {
    gap: 8px;
}

.bcp-checkbox {
    display: flex;
    cursor: pointer;
    margin: 0;
}

.bcp-checkbox input {
    display: none;
}

.bcp-checkbox span {
    padding: 4px 10px;
    border: 1px solid var(--border-primary, #e0e0e0);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.bcp-checkbox:hover span {
    border-color: #007cba;
    color: #007cba;
}

.bcp-checkbox.active span {
    border-color: #007cba;
    color: #007cba;
    background: #e8f4fc;
}

/* 建筑信息行 - 横向排列 */
.bcp-dropdown-row {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    flex-wrap: nowrap;
    gap: 0;
}

.bcp-dropdown-row .bcp-filter-label {
    padding-top: 0;
    align-self: center;
}

/* 下拉组横向排列 */
.bcp-dropdown-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex: 1;
    align-items: center;
}

/* 内联下拉框样式 */
.bcp-dropdown-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.bcp-dropdown-label {
    font-size: 14px;
    color: var(--text-primary, #333);
    font-weight: normal;
}

.bcp-dropdown-inline select {
    padding: 5px 25px 5px 8px;
    border: 1px solid var(--border-primary, #ddd);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary, #333);
    background: var(--bg-card, #fff);
    cursor: pointer;
    height: 32px;
    line-height: 1.2;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    min-width: 80px;
}

.bcp-dropdown-inline select:hover {
    border-color: #007cba;
}

/* 响应式 - 小屏幕换行 */
@media (max-width: 900px) {
    .bcp-dropdown-row {
        flex-wrap: wrap;
    }
    
    .bcp-dropdown-group {
        flex-wrap: wrap;
        margin-top: 10px;
        margin-left: 80px; /* 与标签对齐 */
    }
}

@media (max-width: 768px) {
    .bcp-dropdown-group {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    
    .bcp-dropdown-inline {
        width: 100%;
    }
    
    .bcp-dropdown-inline select {
        flex: 1;
    }
}

.bcp-dropdown select:hover {
    border-color: #007cba;
}

.bcp-dropdown select:focus {
    outline: none;
    border-color: #007cba;
}

/* 分割线 */
.bcp-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 5px;
    padding-top: 0px;
    border-top: 1px solid #f0f0f0;
}


/* ============================================
   文章网格样式
   ============================================ */
.bcp-grid-container {
    max-width: 100%;
}

.bcp-results-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.bcp-results-count strong {
    color: #007cba;
    font-size: 18px;
}

.bcp-posts-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.bcp-posts-grid.bcp-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bcp-posts-grid.bcp-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bcp-posts-grid.bcp-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 文章卡片 - 新布局 */

.bcp-post-item {
    background: var(--bg-card, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-primary, transparent);
}

.bcp-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 缩略图区域 - 固定宽高 */
.bcp-post-image-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.bcp-post-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.bcp-post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
    display: block;
}

.bcp-post-item:hover .bcp-post-image-wrap img {
    transform: scale(1.05);
}

.bcp-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.bcp-post-item:hover .bcp-post-overlay {
    opacity: 1;
}

.bcp-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* 内容区域 */
.bcp-post-content {
    padding: 15px;
}

/* 标题 */
.bcp-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.bcp-post-title a {
    color: var(--text-primary, #333);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcp-post-title a:hover {
    color: #007cba;
}

/* 元信息行 - 左右布局 */
.bcp-post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* 分类信息 - 靠左 */
.bcp-post-cats {
    color: var(--text-secondary, #666);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 统计数据 - 靠右 */
.bcp-post-stats {
    display: flex;
    gap: 15px;
    color: var(--text-secondary, #999);
    flex-shrink: 0;
}

.bcp-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bcp-stat svg {
    opacity: 0.7;
}

/* 无结果 */
.bcp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-secondary, #999);
}

.bcp-no-results a {
    color: #007cba;
    text-decoration: none;
}

/* 分页 */
.bcp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bcp-pagination a,
.bcp-pagination span {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-secondary, #666);
    background: var(--bg-secondary, #f5f5f5);
    transition: all 0.2s;
}

.bcp-pagination a:hover {
    background: var(--border-primary, #e8e8e8);
}

.bcp-pagination .current {
    background: #007cba;
    color: #fff;
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板端 */
@media (max-width: 1024px) {
    .bcp-posts-grid.bcp-col-3,
    .bcp-posts-grid.bcp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 建筑信息下拉改为2x2网格 */
    .bcp-dropdown-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bcp-dropdown select {
        width: 100%;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .bcp-filter-container {
        padding: 15px;
    }
    
    /* 筛选行改为垂直布局 */
    .bcp-filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .bcp-filter-label {
        width: 100%;
        padding-top: 0;
    }
    
    /* 二级分类左对齐 */
    .bcp-sub-row {
        margin-left: 0;
        padding-left: 20px;
        border-left: 3px solid #e8f4fc;
    }
    
    /* 下拉框改为垂直排列 */
    .bcp-dropdown-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .bcp-dropdown {
        width: 100%;
    }
    
    .bcp-dropdown select {
        width: 100%;
    }
    
    /* 按钮组 */
    .bcp-filter-actions {
        flex-direction: column;
    }
    
    .bcp-btn-reset,
    .bcp-btn-submit {
        width: 100%;
    }
    
    /* 网格单列 */
    .bcp-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .bcp-filter-options {
        gap: 6px;
    }
    
    .bcp-radio span,
    .bcp-checkbox span {
        padding: 3px 8px;
        font-size: 12px;
    }
}

/* ============================================
   手机端布局优化 - 减小两侧留白
   ============================================ */
@media (max-width: 768px) {
    .bcp-grid-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border: 0 !important;
    }
    
    .bcp-filter-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    
    .bcp-posts-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .bcp-post-card {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
}

@media (max-width: 480px) {
    .bcp-grid-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border: 0 !important;
    }
    
    .bcp-filter-container {
        padding-left: 4px !important;
        padding-right: 4px !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    
    .bcp-posts-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .bcp-post-card {
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
}

/* 效果图库专用样式 */
.image-library-grid .bcp-post-image-wrap {
    height: 220px;
}

.image-library-item .bcp-post-overlay {
    flex-direction: column;
}

.image-library-lightbox {
    cursor: zoom-in;
}

@media (max-width: 1024px) {
    .image-library-grid .bcp-posts-grid.bcp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-library-grid .bcp-posts-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .image-library-grid .bcp-post-image-wrap {
        height: 180px;
    }
}


/* ============================================
   效果图详情页样式
   ============================================ */
.image-library-detail {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 左侧栏 */
.ild-left-column {
    flex: 1;
    min-width: 0;
}

.ild-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.ild-main-image-wrap {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ild-main-image {
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.ild-main-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* 图片导航 */
.ild-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.8);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.ild-nav-btn:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ild-prev { left: 15px; }
.ild-next { right: 15px; }

.ild-image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* 缩略图列表 */
.ild-thumbnail-list {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    overflow-x: auto;
}

.ild-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ild-thumb:hover {
    border-color: #007cba;
}

.ild-thumb.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.ild-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 统计栏 */
.ild-stats-bar {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
}

.ild-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

/* 右侧栏 */
.ild-right-column {
    width: 320px;
    flex-shrink: 0;
}

/* 下载区域 */
.ild-download-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    text-align: center;
}

.ild-download-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.ild-download-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.ild-download-tip {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #999;
}

/* 信息区域 */
.ild-info-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.ild-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.ild-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ild-info-item {
    display: flex;
    font-size: 14px;
    line-height: 1.5;
}

.ild-info-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    flex-shrink: 0;
}

.ild-info-value {
    color: #666;
    flex: 1;
}

/* 分享区域 */
.ild-share-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ild-share-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.ild-share-buttons {
    display: flex;
    gap: 10px;
}

.ild-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ild-share-btn.wechat {
    background: #07c160;
    color: #fff;
}

.ild-share-btn.weibo {
    background: #e6162d;
    color: #fff;
}

.ild-share-btn:hover {
    transform: scale(1.1);
}

/* 无图片提示 */
.ild-no-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .image-library-detail {
        flex-direction: column;
    }
    
    .ild-right-column {
        width: 100%;
    }
    
    .ild-main-image img {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .image-library-detail {
        padding: 15px;
    }
    
    .ild-title {
        font-size: 20px;
    }
    
    .ild-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ild-thumbnail-list {
        gap: 8px;
    }
    
    .ild-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   效果图详情页V2 - 上下布局
   ============================================ */
.ildv2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题 */
.ildv2-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* 元信息行 */
.ildv2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ildv2-meta-item {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ildv2-meta-item i {
    font-size: 14px;
}

/* 大图区域 */
.ildv2-image-wrap {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.ildv2-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.ildv2-lightbox {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.ildv2-lightbox:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.ildv2-no-image {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
}

.ildv2-no-image i {
    font-size: 64px;
    margin-bottom: 15px;
}

