html,body{
    height: 100%;
    width: 100%;
	margin: 0px
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

#header, #footer{
	background:#49bc85
}
.headtop{
	display: flex;justify-content: space-between; align-items: center;
	background: rgba(255,255,255,0.2)
}
.headtop img{width:250px}

.container{width:100%; max-width:1440px; margin:0px auto; padding:0px 10px;}


#footer .container{padding: 10px; background: rgba(255,255,255,0.2)}

#mainbody .container{
	  min-height: calc(100vh - 200px);
}
#mainbody .title{
	padding:10px 0; 
	font-weight: bold;
}


.menu{background: #ddd; padding:5px 10px; width:100%; max-width:1440px; margin:0px auto; box-shadow: 0 0px 5px rgba(0, 0, 0, 0.15)}
.menu a{ display:inline-block;  padding:5px 15px; border-radius:10px; text-decoration: none}
.menu .active{background: #fff}

.albums{
	display: grid;
	row-gap:25px;
	column-gap:15px;
    grid-template-columns: repeat(8, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}
.albums .items{
	position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: white;
	text-decoration: none
}
.albums .items .name{
	padding:5px 15px;
	margin-bottom: 10px;
}

.albums .items:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.albums .items img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.albums .items:hover img {
    transform: scale(1.05);
}

/* 平板设备：4列 */
@media (max-width: 1024px) {
    .albums {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .albums .items img {
        height: auto;
    }
    
    .headtop img{height:40px; width:auto; margin-top: 5px}
}

/* 手机设备：2列 */
@media (max-width: 768px) {
    .albums {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .albums .items img {
        height: auto;
    }
}



/* 分页组件基础样式 */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 分页项通用样式 */
.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 可点击分页项的悬停效果 */
.pagination li a:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 激活状态分页项 */
.pagination li.active span {
    background: #49bc85;
    color: white;
    border-color: green;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 禁用状态分页项 */
.pagination li.disabled span {
    background-color: #f8f9fa;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 箭头图标特殊样式 */
.pagination li a[href*="page"]:first-child,
.pagination li a[href*="page"]:last-child {
    font-weight: bold;
    font-size: 16px;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .pagination {
        gap: 2px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* 焦点状态辅助功能 */
.pagination li a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}