* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 50%, #f5f7fa 100%);
    min-height: 100vh;
}

.body.light-theme.new-theme {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 50%, #f5f7fa 100%);
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-ball-1, .bg-ball-2 {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.08;
}

.bg-ball-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.bg-ball-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -80px;
}

.floating-element {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

.mobile-menu-overlay.active {
    display: block;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 99999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

#mobile-menu.active {
    right: 0;
}

#mobile-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

#mobile-menu li a:hover, #mobile-menu li a.active {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-left-color: #4f46e5;
}

#mobile-menu li a i {
    font-size: 20px;
}

#mobile-menu li a span {
    font-size: 15px;
}

.mobile-menu-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: 200px 1fr !important;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.side-nav-new {
    position: sticky;
    top: 32px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.side-logo {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.side-logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.side-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.side-logo h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: normal;
    margin: 0;
}

.pc-side-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.pc-side-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.pc-side-menu li a:hover, .pc-side-menu li a.active {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-left-color: #4f46e5;
}

.pc-side-menu li a i {
    font-size: 18px;
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.side-nav-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.main-content-new {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 20px;
    min-height: calc(100vh - 160px);
    position: sticky;
    top: 32px;
    align-self: flex-start;
    min-width: 0;
    gap: 0;
}

.relative {
    position: relative;
}

.h-64 {
    height: 200px;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.h-3\/5 {
    height: 60%;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(249, 250, 251, 0.95), transparent);
}

.bottom-4 {
    bottom: 16px;
}

.left-4 {
    left: 16px;
}

.z-10 {
    z-index: 10;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-900 {
    color: #111827;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.mt-1 {
    margin-top: 4px;
}

.text-sm {
    font-size: 14px;
}

.text-gray-500 {
    color: #6b7280;
}

.layui-card {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: none;
    margin: 0;
    border: none;
    padding-top: 0;
}

.layui-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
}

.layui-card-body {
    padding: 20px;
}

.pic-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0;
}

.pic-item {
    overflow: hidden;
}

.pic-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.pic-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pic-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.pic-info {
    padding: 0 8px 8px;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}



.text-center {
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 4px;
    padding: 25px 0;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    display: inline-block;
}

.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.pagination li a:hover:not(.disabled) {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.pagination li.active span {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.pagination li.disabled span {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.loading {
    color: #9ca3af;
    padding: 50px 0;
    text-align: center;
    display: block;
}

.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    overflow-y: auto;
}

.detail-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding-right: 40px;
}

.modal-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

.modal-body {
    padding: 25px 30px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.modal-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-nav-btn:hover:not(.disabled) {
    background: #4f46e5;
    color: white;
}

.modal-nav-btn.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.modal-loading {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}

.viewer-close, .viewer-prev, .viewer-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.viewer-close {
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 24px;
}

.viewer-prev, .viewer-next {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 28px;
}

.viewer-prev { left: 25px; }
.viewer-next { right: 25px; }

.viewer-close:hover, .viewer-prev:hover, .viewer-next:hover, .viewer-copy-url:hover, .viewer-download:hover {
    background: rgba(255,255,255,0.25);
}

.viewer-actions {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.viewer-copy-url, .viewer-download {
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.justify-content-between {
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 160px 1fr !important;
        gap: 12px;
        padding: 15px 10px;
    }
}

@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr !important;
        padding: 10px;
        gap: 10px;
    }

    .side-nav-new {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 15px;
        flex-wrap: nowrap;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }

    .side-logo {
        padding: 5px;
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .side-logo img {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }

    .side-logo h2 {
        display: block;
        font-size: 15px;
        font-weight: 600;
    }

    .pc-side-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }

    .side-nav-footer {
        display: none;
    }

    .main-content-new {
        position: relative;
        top: 0;
        margin-top: 5px;
        padding: 10px;
        border-radius: 10px;
    }

    .pic-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .h-64 {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .home-grid {
        padding: 8px;
    }

    .pic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .main-content-new {
        padding: 8px;
    }

    .h-64 {
        height: 140px;
    }

    .layui-card-body {
        padding: 12px;
    }

    .pic-info {
        padding: 8px;
    }

    .pic-title {
        font-size: 12px;
        line-height: 1.3;
    }

    .modal-content {
        margin: 10px;
        border-radius: 10px;
        width: calc(100% - 20px);
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .modal-body {
        padding: 15px;
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pagination li a, .pagination li span {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }

    .side-logo h2 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-grid {
        padding: 5px;
    }

    .pic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pic-title {
        font-size: 11px;
        line-height: 1.25;
    }

    .h-64 {
        height: 120px;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 15px;
        font-size: 13px;
    }

    .viewer-prev, .viewer-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .viewer-close {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .side-logo img {
        width: 35px;
        height: 35px;
    }

    .side-logo h2 {
        font-size: 13px;
    }

    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .pic-list {
        gap: 6px;
    }

    .pic-title {
        font-size: 10px;
    }

    .h-64 {
        height: 100px;
    }
}
