/* ==================== 图库页面样式 - 真正瀑布流布局 ==================== */

/* 图库标题样式 */
.photos-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--end-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.photos-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--end-primary);
    border-radius: 2px;
}

.photos-section-subtitle {
    color: var(--end-text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    padding-left: 16px;
}

/* 真正瀑布流布局 - 使用 columns */
.photos-grid {
    columns: 3;
    column-gap: 6px;
    margin: 20px 0;
  display: table-cell;
}

.photo-item {
    break-inside: avoid;
    /*margin-bottom: 6px;*/
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
    width: 100%;
}

.photo-card {
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--end-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 卡片悬停效果 - 只改变阴影和边框 */
.photo-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    /* 移除transform，让卡片保持原位 */
}

/* 图片容器 - 用于控制图片的溢出 */
.photo-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.photo-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* 只在图片上应用缩放效果 */
.photo-card:hover .photo-image {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, #00000040 40%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 6px;
  border-radius: 0px;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-info {
    color: white;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 100%;
}

.photo-card:hover .photo-info {
    transform: translateY(0);
}

.photo-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-desc {
    font-size: 0.85rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease 0.1s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-card:hover .photo-desc {
    opacity: 1;
}

/* 图片加载动画 */
.photo-item {
    animation: fadeInUp 0.6s ease;
}

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

/* 图库空状态 */
.photos-empty-state {
    text-align: center;
    padding: 60px 10px 70px 10px;
    color: ;
    break-inside: avoid;
    column-span: all;
}

.photos-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.photos-empty-state h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.photos-empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 响应式调整 */

@media (max-width: 768px) {
    .photos-section-title {
        font-size: 1.5rem;
        padding-left: 12px;
    }
    
    .photos-section-title::before {
        width: 3px;
        height: 20px;
    }
    
    .photos-section-subtitle {
        padding-left: 12px;
        font-size: 0.9rem;
    }
    
    .photos-grid {
        columns: 2;
        column-gap: 6px;
    }
    
    .photo-item {
        margin-bottom: 6px;
    }
    
    .photo-overlay {
        padding: 6px;
        opacity: 1;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 30%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .photo-info {
        transform: translateY(0);
    }
    
    .photo-desc {
        opacity: 1;
    }
    
    .photo-title {
        font-size: 0.95rem;
    }
    
    .photo-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .photos-section-title {
        font-size: 1.3rem;
        padding-left: 10px;
    }
    
    .photos-section-title::before {
        width: 3px;
        height: 18px;
    }
    
    .photos-grid {
        columns: 2;
    }
    
    .photo-item {
        margin-bottom: 6px;
    }
    
    .photo-overlay {
        padding: 6px;
    }
    
    .photo-title {
        font-size: 0.9rem;
    }
    
    .photo-desc {
        font-size: 0.75rem;
    }
}

























/* ==================== 下拉菜单 ==================== */
.adaptive-dropdown {
    width: 100%;
}

.dropdown-container {
    position: relative;
    width: 100%;
    margin: 0 auto; /* 桌面端居中 */
}

/* 选择器 - 自适应版 */
.dropdown-selector {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}


.dropdown-selector.expanded {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid transparent;
}

.selector-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.arrow-icon {
    color: #888;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dropdown-selector.expanded .arrow-icon {
    transform: rotate(180deg);
    color: #fff;
}

/* 下拉选项 - 自适应版 */
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    box-sizing: border-box;
}

.dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 320px;
    overflow-y: auto;
}

/* 列表样式 */
.dropdown-options ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.dropdown-options li {
    margin: 0;
}

.dropdown-options a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dropdown-options a:hover {
    background: #333;
    color: #fff;
}

.dropdown-options a.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.option-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.option-count {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-options a.active .option-count {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* 滚动条样式 */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* 桌面端响应式调整 */
@media (min-width: 769px) {
    .dropdown-container {
        margin: 0; /* 桌面端左对齐 */
    }
}

/* 平板端响应式 */
@media (max-width: 768px) and (min-width: 481px) {
    .dropdown-container {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* 移动端响应式 */
@media (max-width: 480px) {
    .dropdown-selector {
        padding: 10px 14px;
    }
    
    .selector-content {
        font-size: 13px;
    }
    
    .dropdown-options a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .option-count {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* 小屏幕手机 */
@media (max-width: 360px) {
    .dropdown-selector {
        padding: 8px 12px;
    }
    
    .selector-content {
        font-size: 12px;
    }
    
    .dropdown-options a {
        padding: 7px 12px;
        font-size: 12px;
    }
}