@charset "UTF-8";
/* ============================================================
   front_album.css - 橙子CMS 相册专用样式
   注意：此文件只包含相册模块特有的样式，不与 style.css 冲突
   ============================================================ */

/* ============================================================
   分类导航
   ============================================================ */
.category-nav {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.category-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-nav-scroll::-webkit-scrollbar {
    height: 4px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.category-nav-scroll a {
    white-space: nowrap;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.category-nav-scroll a:hover {
    background: #e9ecef;
    color: #333;
}

.category-nav-scroll a.active {
    background: #1a73e8;
    color: white;
}

.category-nav-scroll .more-link {
    color: #1a73e8;
    font-weight: 500;
    border-color: #1a73e8;
}

.category-nav-scroll .more-link:hover {
    background: #1a73e8;
    color: white;
}

/* ============================================================
   相册列表网格
   ============================================================ */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.album-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.album-card a {
    display: block;
    color: #333;
}

.album-cover {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #e9ecef;
}

.cover-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.album-name {
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   所有分类页面
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 22px;
    margin: 0;
    color: #333;
}

.category-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.category-section-header h2 {
    font-size: 18px;
    margin: 0;
    color: #1a73e8;
}

.empty-albums {
    color: #999;
    font-style: italic;
    padding: 8px 0;
}

.album-list-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.album-simple-item {
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid #e9ecef;
}

.album-simple-item:hover {
    background: #e9ecef;
}

.album-simple-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
}

.album-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.album-simple-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-simple-meta {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 6px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.25s;
}

.pagination a:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination a.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* ============================================================
   相册详情页
   ============================================================ */
.album-detail-container {
    max-width: 100%;
}

.album-detail-header {
    margin-bottom: 16px;
}

.album-detail-header h1 {
    font-size: 26px;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.album-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #888;
}

.album-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.album-detail-intro {
    background: #f8f9fa;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    border-left: 3px solid #1a73e8;
}

/* ============================================================
   相册照片网格
   ============================================================ */
.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.album-photo-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.album-photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.album-photo-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.album-photo-name {
    padding: 6px 10px;
    font-size: 13px;
    text-align: center;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   灯箱
   ============================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: scale(1.15);
    background: rgba(220, 53, 69, 0.6);
}

.lightbox-controls {
    position: absolute;
    top: 16px;
    right: 80px;
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 32px;
    padding: 16px 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-nav.prev {
    left: 16px;
}

.lightbox-nav.next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   评论区域
   ============================================================ */
.comment-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.comment-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.comment-form .btn {
    margin-top: 8px;
}

.comment-login-tip {
    color: #888;
    font-size: 14px;
}

.comment-list {
    margin-top: 16px;
}

.comment-item {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #1a73e8;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author strong {
    color: #1a73e8;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* ============================================================
   空状态
   ============================================================ */
.no-data {
    color: #999;
    font-size: 14px;
    padding: 30px 0;
    text-align: center;
}

.no-data .icon {
    font-size: 40px;
    margin-bottom: 8px;
}

/* ============================================================
   响应式
   ============================================================ */

/* 平板 */
@media (max-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .album-photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .album-cover {
        height: 140px;
    }
    .album-list-simple {
        grid-template-columns: 1fr;
    }
    .category-nav-scroll a {
        font-size: 13px;
        padding: 4px 12px;
    }
    .album-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .album-photo-item img {
        height: 130px;
    }
    .album-detail-header h1 {
        font-size: 22px;
    }
    .album-detail-meta {
        font-size: 12px;
        gap: 10px;
    }
    /* 灯箱移动端调整 */
    .lightbox-controls {
        top: 12px;
        right: 60px;
        padding: 4px 10px;
    }
    .lightbox-controls button {
        font-size: 16px;
        padding: 3px 8px;
    }
    .lightbox-nav {
        font-size: 24px;
        padding: 12px 10px;
    }
    .lightbox-nav.prev {
        left: 10px;
    }
    .lightbox-nav.next {
        right: 10px;
    }
    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
        top: 12px;
        right: 14px;
    }
    .lightbox-content {
        max-width: 96vw;
        max-height: 80vh;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .album-cover {
        height: 120px;
    }
    .album-name {
        font-size: 12px;
        padding: 6px 8px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .album-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .album-photo-item img {
        height: 110px;
    }
    .album-photo-name {
        font-size: 12px;
        padding: 4px 6px;
    }
    .album-detail-header h1 {
        font-size: 20px;
    }
    .album-detail-meta {
        font-size: 11px;
        gap: 8px;
        flex-direction: column;
    }
}