/* 页面主体 */
.container {
    width: 68%;
    max-width: 2000px;      /* 限制最大宽度 */
    margin: 0 auto;          /* 居中 */
    padding: 0 20px;
    margin-top: 10px;
    position: relative;
}

.page-title {
    font-size:60px;
    font-weight:800;
    color:#1f1f1f;
}

.page-sub {
    display: inline-block;     /* 让文字宽度根据内容自适应 */
    margin: 10px 0;
    color: #777;
    font-size: 20px;
    border-left: 4px solid #428c58;
    padding-left: 16px;
    max-width: 70%;            /* 限制最大宽度，给图片留空间 */
}

.sub-image {
    position: absolute;
    right: 30px;
    width: 500px;
    height: 150px;
    top: 10px;
}

.filter-footer {
    position: absolute;
    right: 30px;   /* 距离右边 30px */
    bottom: 28px;  /* 距离底部 28px */

}

.filter-row{
    display:flex;
    align-items: flex-start;
    margin-bottom:22px;
    flex-wrap: wrap;           /* 允许整行换行 */
    gap: 10px 0;              /* 垂直间距 */
}

.filter-row:last-child{
    margin-bottom:0;
}

.filter-label{
    width:110px;
    font-size:20px;
    font-weight:600;
    color:#333;
    flex-shrink: 0;          /* 标签宽度固定，不被压缩 */
    line-height: 42px;       /* 和标签高度一致，垂直居中 */
}

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px 16px;
    flex: 1;                /* 占据剩余空间 */
    min-width: 0;           /* 允许收缩 */
}

.tag{
    min-width:82px;
    height:42px;
    border-radius:10px;
    border:1px solid #e2e8df;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    color:#555;
    padding:0 20px;
    cursor:pointer;
}

.tag.active{
    background:#2e8b57;
    color:#fff;
    border:none;
}

/* 筛选框加相对定位，方便重置按钮定位 */
.filter-box {
    position: relative;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e7ece5;
    border-radius: 24px;
    padding: 25px 30px 30px;
}

.reset-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e8df;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.reset-btn:hover {
    border-color: #2e8b57;
    background: #f5faf7;
}

.reset-btn img {
    width: 22px;
    height: 22px;
    transition: transform 0.5s ease;
}

/* 点击后旋转 180 度 回弹 */
.reset-btn.spin img {
    transform: scale(1.3) rotate(180deg);
}

/* 顶部信息 */
.top-info{
    margin-top:30px;
    margin-bottom: 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.count{
    font-size:26px;
    font-weight:600;
    color:#444;
}

/* 排序按钮 */
.sort-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
    user-select: none;
}

.sort-btn:hover {
    background: #f0f0f0;
}

/* 双箭头图标 */
.sort-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* 升序状态：上箭头短，下箭头长（默认） */
.sort-icon.asc {
    transform: scaleY(1);
}

/* 降序状态：上箭头长，下箭头短（垂直翻转） */
.sort-icon.desc {
    transform: scaleY(-1);
}

/* 卡片区域 */
.card-list {
    max-width: none;
    margin: auto;
    padding: 0 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.card-list .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.design-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dfe9df;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    /* width: calc(50% - 14px); */
    width: 100%;
    /* max-width: 480px;
    min-width: 380px; */
    height: auto;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 点击时效果 */
.design-card:active {
    transform: scale(0.98);
    background: #f9faf9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 悬停效果 */
.design-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 文字内容 */
.card-content {
    padding: 24px 22px 18px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f6d38;
    margin-bottom: 16px;
    line-height: 1.3;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #666;
    font-size: 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.info-row span {
    display: inline-flex;
    align-items: center;
}

.bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.publish-time {
    color: #999;
    font-size: 14px;
}

/* 图片区域 */
.card-image {
    position: relative;  /* 标签定位基准 */
    width: 100%;
    height: auto;
    background: #fff;
    display: block;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 图片内标签 */
.card-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-item {
    background: rgb(48, 205, 134);
    color: #fff;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* 分页 */
.pagination{
    margin-top:36px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
}

/* 省略号样式 - 用于分页组件动态生成的省略号 */
.ellipsis {
    width: 30px;
    text-align: center;
    color: #777;
    font-size: 16px;
    user-select: none;
}

.page{
    width:42px;
    height:42px;
    border-radius:10px;
    border:1px solid #dfe5dc;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:16px;
    color:#444;
    user-select:none; 
}

.page:hover:not(.active):not(.disabled){
    background:#f5f5f0;
}

.page.active{
    background:#2e8b57;
    color:#fff;
    border:none;
}

/* 禁用状态 */
.page.disabled{
    opacity:0.4;
    cursor:not-allowed;
    pointer-events:none;
}


.page-select{
    margin-left:20px;
    width:110px;
    height:42px;
    border-radius:10px;
    border:1px solid #dfe5dc;
    padding:0 10px;
    background:#fff;
}

/* 底部提示 */
.footer-tip{
    margin-top:36px;
    height:92px;
    background:#eef5ec;
    border-radius:20px 20px 0 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 36px;
}

.tip-left{
    display:flex;
    align-items:center;
    gap:18px;
    color:#4c7d57;
    font-size:18px;
    font-weight:500;
}

.heart{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.submit-btn{
    width:200px;
    height:50px;
    border:none;
    border-radius:30px;
    background:#2f8b57;
    color:#fff;
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;      /* 垂直居中 */
    justify-content:center;  /* 水平居中 */
    gap:10px;                /* 图片和文字间距 */
    transition: all 0.3s ease;
    /* 让伪元素相对按钮定位，并裁剪溢出内容 */
    position: relative;
    overflow: hidden;
}

/* 悬停效果 */
.submit-btn:hover {
    background: #1f6d38;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.3);
}

/* 点击效果 */
.submit-btn:active {
    transform: translateY(1px);
}

/* 脉冲动画 */
.submit-btn.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 光效划过 */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.scroll {
    position: fixed;
    right: 6px;
    top: 80px;
    bottom: 60px;          /* 底部留更多空间，避免遮挡按钮 */
    width: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.scroll-up, .scroll-down {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    color: #aaa;
    padding: 0;
    line-height: 16px;
    transition: color 0.2s;
    flex-shrink: 0;         /* 防止按钮被压缩 */
}

.scroll-up:hover, .scroll-down:hover {
    color: #666;
}

/* 轨道 */
.scroll-bar {
    width: 10px;
    height: 100%;            /* 填充剩余空间 */
    background: rgba(0, 0, 0, 0.03);
    border-radius: 5px;
    position: relative;
    margin: 4px 0;
    flex-shrink: 0;
}

/* 滑块 */
.scroll-thumb {
    width: 10px;
    background: #bbb;
    border-radius: 5px;
    position: absolute;
    top: 0;
    min-height: 60px;
    cursor: pointer;
    transition: background 0.2s;
}

.scroll-thumb:hover {
    background: #888;
}

.scroll-thumb:active {
    cursor: grabbing;
    background: #666;
}

.scroll-up:active, .scroll-down:active {
    color: #666;
    transform: scale(0.9);
}

.scroll-up, .scroll-down {
    transition: color 0.2s, transform 0.1s;
    user-select: none;
}

/* 大屏幕（台式机 1920px 以上）- 一行三个，大留白 */
@media (min-width: 1920px) {
    .container {
        margin: 0 auto;
        width: 85%;
        max-width: 1700px;       /* 限制最大宽度 */
        padding: 0 40px;
    }
    
    /* .design-card {
        width: calc(33.333% - 19px);
        max-width: none;
        min-width: 300px; 
    } */
}

/* 中等屏幕（笔记本 1000px - 1919px）- 一行三个 */
@media (max-width: 1919px) and (min-width: 1000px) {
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* .design-card {
        width: calc(50% - 14px);
        min-width: 350px;
    } */
    
    .card-title {
        font-size: 28px;
    }
    
    .sub-image {
        width: 400px;
        height: 150px;
        right: 20px;
    }
}

/* 屏幕小于 1200px 时隐藏sub-image图片 */
@media (max-width: 1200px) {
    .sub-image {
        display: none;
    }
    .container {
        width: 90%;
        margin: 0 auto;
        padding: 0 10px;
    }
    body {
       width: 1200px;
    }
}
