/* ========== 相册页面全宽铺满 ========== */
.site-main.full-width .main-inner {
    max-width: 100%;
    padding: 0 8px;
}

/* ========== 单色图标（全局） ========== */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
.icon path, .icon circle, .icon line, .icon polyline, .icon rect, .icon polygon {
    stroke: currentColor; fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon.fill path, .icon.fill circle, .icon.fill polygon { fill: currentColor; stroke: none; }

/* ========== 全宽搜索栏 ========== */
.album-search-bar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 12px 10px;
}
.album-search-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.album-search-form {
    flex: 1;
    display: flex;
    position: relative;
}
.album-search-input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: all .2s;
}
.album-search-input:focus {
    border-color: #913500;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(145, 53, 0, 0.08);
}
.album-search-input::placeholder {
    color: #aaa;
}
.album-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 36px;
    border: none;
    background: #913500;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.album-search-btn:hover {
    opacity: 0.85;
}
.album-search-clear {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    transition: all .2s;
}
.album-search-clear:hover {
    color: #913500;
    border-color: #913500;
}

/* ========== 筛选栏（Getty风格） ========== */
.album-filter-bar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.album-filter-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 下拉筛选器 */
.filter-dropdown {
    position: relative;
}
.filter-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.filter-trigger:hover {
    border-color: #913500;
    background: #fdf8f5;
}
.filter-label {
    color: #666;
    font-size: 13px;
}
.filter-value {
    color: #333;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-arrow {
    font-size: 10px;
    color: #999;
    transition: transform .2s;
}
.filter-dropdown.open .filter-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-width: 320px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 6px 0;
}
.filter-menu.open {
    display: block;
}
.filter-menu-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-menu-item:hover {
    background: #f5f0ec;
    color: #913500;
}
.filter-menu-item.active {
    background: #913500;
    color: #fff;
}

/* 已选筛选项标签 */
.album-tags-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.filter-tags-label {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}
.filter-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f5f0ec;
    color: #913500;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}
.filter-tag a {
    color: #913500;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity .2s;
}
.filter-tag a:hover {
    opacity: 1;
}
.filter-tag.clear-all {
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    text-decoration: none;
    cursor: pointer;
}
.filter-tag.clear-all:hover {
    color: #913500;
    border-color: #913500;
}

/* ========== 结果统计栏 ========== */
.album-results-bar {
    width: 100%;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.album-results-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}
.results-count strong {
    color: #333;
    font-size: 18px;
    font-weight: 700;
}
.results-page {
    color: #999;
    font-size: 13px;
}

/* ========== 全宽瀑布流网格 ========== */
.waterfall-full {
    width: 100%;
    padding: 16px 12px 40px;
    column-count: 6;
    column-gap: 16px;
}
@media(max-width: 1800px) { .waterfall-full { column-count: 5; } }
@media(max-width: 1500px) { .waterfall-full { column-count: 4; } }
@media(max-width: 1200px) { .waterfall-full { column-count: 3; } }
@media(max-width: 900px)  { .waterfall-full { column-count: 2; column-gap: 12px; padding: 12px 8px 32px; } }
@media(max-width: 600px)  { .waterfall-full { column-count: 2; padding: 10px 6px 24px; column-gap: 10px; } }

/* ========== 相册卡片 ========== */
.album-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    border: 1px solid #f0f0f0;
}
.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: #e0d8d0;
}
.album-card .cover-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f0ec 0%, #ebe5e0 100%);
}
.album-card .cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s;
}
.album-card:hover .cover-wrap img {
    transform: scale(1.03);
}
/* 图片加载失败的占位 */
.album-card .cover-wrap img[src^="data:image/svg+xml"] {
    min-height: 160px;
    object-fit: contain;
    padding: 30px;
    background: linear-gradient(135deg, #f5f0ec 0%, #ebe5e0 100%);
    opacity: 0.5;
}

/* 角标 */
.album-card .cover-wrap .img-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.album-card .cover-wrap .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.8);
    pointer-events: none;
}
.album-card .cover-wrap .card-dynasty {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(145, 53, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* 卡片信息 */
.album-card .card-info {
    padding: 12px 14px 14px;
}
.album-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.album-card .card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.album-card .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.album-card .card-meta .meta-cat {
    color: #913500;
    font-weight: 500;
    background: #f5f0ec;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.album-card .card-meta .meta-views {
    color: #999;
}
.album-card .card-meta .meta-loc {
    color: #bbb;
}

/* ========== 空状态 ========== */
.empty-tip {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
    column-span: all;
}
.empty-tip .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.empty-tip a {
    color: #913500;
    text-decoration: none;
}
.empty-tip a:hover {
    text-decoration: underline;
}

/* ========== 分页（全宽） ========== */
.pagination-full {
    width: 100%;
    padding: 16px 12px 40px;
    background: #fafafa;
}
.pagination-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.pagination-full a, .pagination-full span {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all .15s;
    font-size: 14px;
}
.pagination-full a:hover {
    border-color: #913500;
    color: #913500;
}
.pagination-full span.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}
.pagination-full span.active {
    background: #913500;
    color: #fff;
    border-color: #913500;
}

/* ========== 旧样式兼容（隐藏）========== */
.filter-bar { display:none; }
.waterfall { display:none; }
.pagination { display:none; }
