/* 现代化列表页样式 - 橘色主题 */

/* 基础样式重置 */
.modern-list-page * {
    box-sizing: border-box;
}

/* 主容器 */
.modern-list-page {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    min-height: 100vh;
    padding: 0;
}

.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面英雄区域 */
.page-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    border-radius: 0 0 30px 30px;
    padding: 60px 40px;
    margin-bottom: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;  display: flex;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #c73500;
}

.stat-label {
    font-size: 28px;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 6px;margin-left: 10px;
  
}

.hero-actions {
    z-index: 2;
    position: relative;
}

.btn-publish {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-publish:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 现代化工具栏 */
.list-toolbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 4px;
    gap: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sort-select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.sort-select:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    background: transparent;
    width: 250px;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
}

/* 内容包装器 */
.content-wrapper {
    position: relative;
}

/* 网格视图样式 */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.grid-view:not(.active) {
    display: none;
}

.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.modern-card.featured {
    border: 3px solid #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #fff5f0 100%);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(247, 147, 30, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover .image-overlay {
    opacity: 1;
}

.view-more {
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.image-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 2;
}

.card-content {
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    margin-right: 15px;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #ff6b35;
}

.card-title a.text-highlight {
    color: #ff6b35 !important;
}

.card-title a.text-bold {
    font-weight: 700;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.badge-recommend {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.badge-verified {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.badge-featured {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}

.location-info,
.time-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 列表视图样式 */
.list-view {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.list-view.active {
    display: flex;
}

.list-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.list-item:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.list-item.featured {
    border-left: 5px solid #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #fff5f0 100%);
}

.item-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.item-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    margin-right: 15px;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title a:hover {
    color: #ff6b35;
}

.item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.item-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-actions {
    flex-shrink: 0;
}

.action-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    /* color: white; */
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 现代化分页 */
.pagination-modern {
    margin: 50px 0 30px 0;
    display: flex;
    justify-content: center;
}

.pagination-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 15px 25px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

/* 重写原有分页样式 */
.pagination-wrapper .pagination2 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-wrapper .pagination2 a,
.pagination-wrapper .pagination2 span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    margin: 0;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.pagination-wrapper .pagination2 a {
    background: #f8f9fa;
    color: #666;
    border-color: #e9ecef;
}

.pagination-wrapper .pagination2 a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    border-color: transparent;
}

.pagination-wrapper .pagination2 span.current {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 首页按钮样式 */
.pagination-wrapper .pagination2 a:first-child {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.pagination-wrapper .pagination2 a:first-child:hover {
    background: #1976d2;
    color: white;
    border-color: transparent;
}

/* 末页按钮样式 */
.pagination-wrapper .pagination2 a:last-child {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.pagination-wrapper .pagination2 a:last-child:hover {
    background: #f57c00;
    color: white;
    border-color: transparent;
}

/* 上一页/下一页按钮样式 */
.pagination-wrapper .pagination2 a[href*="page="]:nth-child(2) {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.pagination-wrapper .pagination2 a[href*="page="]:nth-child(2):hover {
    background: #7b1fa2;
    color: white;
    border-color: transparent;
}

.pagination-wrapper .pagination2 a[href*="page="]:nth-last-child(2) {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #a5d6a7;
}

.pagination-wrapper .pagination2 a[href*="page="]:nth-last-child(2):hover {
    background: #388e3c;
    color: white;
    border-color: transparent;
}

/* 省略号样式 */
.pagination-wrapper .pagination2 span:not(.current) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: #999;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination-modern {
        margin: 30px 0 20px 0;
    }
    
    .pagination-wrapper {
        padding: 12px 20px;
    }
    
    .pagination-wrapper .pagination2 {
        gap: 6px;
    }
    
    .pagination-wrapper .pagination2 a,
    .pagination-wrapper .pagination2 span.current {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .pagination-wrapper .pagination2 span:not(.current) {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper .pagination2 a,
    .pagination-wrapper .pagination2 span.current {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .pagination-wrapper .pagination2 span:not(.current) {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* 图标样式 */
.icon-plus::before { content: "➕"; }
.icon-grid::before { content: "⊞"; }
.icon-list::before { content: "☰"; }
.icon-search::before { content: "🔍"; }
.icon-location::before { content: "📍"; }
.icon-time::before { content: "🕒"; }
.icon-arrow-right::before { content: "→"; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .modern-container {
        padding: 0 15px;
    }
    
    .page-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .list-toolbar-modern {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .toolbar-left {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .search-input {
        width: 200px;
    }
    
    .grid-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .list-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .item-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .item-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card,
.list-item {
    animation: fadeInUp 0.6s ease forwards;
}

.modern-card:nth-child(1) { animation-delay: 0.1s; }
.modern-card:nth-child(2) { animation-delay: 0.2s; }
.modern-card:nth-child(3) { animation-delay: 0.3s; }
.modern-card:nth-child(4) { animation-delay: 0.4s; }
.modern-card:nth-child(5) { animation-delay: 0.5s; }
.modern-card:nth-child(6) { animation-delay: 0.6s; }

.list-item:nth-child(1) { animation-delay: 0.1s; }
.list-item:nth-child(2) { animation-delay: 0.2s; }
.list-item:nth-child(3) { animation-delay: 0.3s; }
.list-item:nth-child(4) { animation-delay: 0.4s; }
.list-item:nth-child(5) { animation-delay: 0.5s; }
