/* 全局变量定义 - 非遗特色配色 */
:root {
    --theme-primary: #2e8b57;
    --theme-primary-dark: #1f5f3b;
    --theme-gold: #d4b054;
    --theme-earth: #c9a063;
    --theme-earth-light: #f2e6d0;
    --theme-text-dark: #3a2a1d;
    --theme-gray: #8c7a6b;
    --card-shadow: 0 3px 10px rgba(58, 42, 29, 0.1);
    --card-hover-shadow: 0 8px 20px rgba(58, 42, 29, 0.18);
    --gradient-red: linear-gradient(135deg, #3cb371 0%, #2e8b57 100%);
    --gradient-gold: linear-gradient(135deg, #d4b054 0%, #e8c97a 100%);
    --transition-smooth: all 0.3s ease;
}

/* 隐藏导航栏下方的空白区域 */
nav {
    margin-bottom: 0 !important;
}

/* 页面标题区域 */
.page-header {
    background: var(--gradient-red);
    padding: 35px 40px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(29, 78, 137, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    font-size: 1.8rem;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.header-stats .stat-item {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.header-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.header-stats .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    color: #ffffff;
}

/* 用户头像样式定义 */
.user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #133863;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 主内容区域 - 移除顶部边距 */
.list-main {
    max-width: 100%;
    width: 96%;
    margin: 0 auto;
    padding: 25px;
    background-color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 78, 137, 0.1);
    margin-top: 0;
    margin-bottom: 20px;
    border-top: none;
}

/* 大屏幕优化 - 1400px以上 */
@media (min-width: 1400px) {
    .list-main {
        max-width: 95%;
        padding: 30px;
    }
    
    .page-header {
        padding: 40px 50px;
    }
    
    .heritage-list {
        gap: 30px;
    }
}

/* 超大屏幕优化 - 1800px以上 */
@media (min-width: 1800px) {
    .list-main {
        max-width: 90%;
        padding: 35px;
    }
    
    .page-header {
        padding: 45px 60px;
    }
}



/* 导航栏当前页面高亮优化 */
.main-nav a.active {
    background-color: rgba(29, 78, 137, 0.08);
    color: var(--theme-primary);
    position: relative;
    font-weight: bold;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: var(--theme-primary);
    border-radius: 2px;
}

/* 筛选区域样式 */
.filter-section {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f4ea 0%, #fff 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 176, 84, 0.2);
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

.filter-group {
    display: flex;
    align-items: center;
    min-width: auto;
    flex: 1;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    white-space: nowrap;
    color: var(--theme-text-dark);
    font-size: 0.95rem;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0d5c5;
    border-radius: 8px;
    min-width: 150px;
    flex: 1;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.filter-group select:hover {
    border-color: var(--theme-gold);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.1);
}

.search-box {
    display: flex;
    flex: 1.2;
    min-width: 300px;
    gap: 0;
}

.search-box input {
    flex: 1;
    padding: 10px 18px;
    border: 2px solid #e0d5c5;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.search-box button {
    padding: 10px 25px;
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    white-space: nowrap;
}

.search-box button:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

/* 项目列表样式 */
.heritage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    min-height: 200px;
}

.heritage-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.heritage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-red);
    opacity: 0;
    transition: var(--transition-smooth);
}

.heritage-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.heritage-item:hover::before {
    opacity: 1;
}

.heritage-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.heritage-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

.heritage-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.heritage-item:hover .heritage-image {
    transform: scale(1.08);
}

/* 收藏按钮样式 - 使用红色主题配色 */
/* 收藏按钮样式 - 非遗文化主题 */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(29, 78, 137, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: var(--theme-gray);
}

.favorite-btn:hover {
    background: var(--gradient-red);
    border-color: transparent;
    color: white;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 4px 15px rgba(29, 78, 137, 0.4);
}

.favorite-btn.favorited {
    background: var(--gradient-red);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(29, 78, 137, 0.35);
    animation: favoritePulse 0.5s ease;
}

.favorite-btn.favorited:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 5px 18px rgba(29, 78, 137, 0.5);
}

@keyframes favoritePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.heritage-content {
    padding: 18px;
}

.heritage-title {
    font-size: 1.15rem;
    color: var(--theme-text-dark);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heritage-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.heritage-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.heritage-level {
    background: linear-gradient(135deg, #f9e8e7 0%, #fce8e6 100%);
    color: var(--theme-primary);
    border: 1px solid rgba(29, 78, 137, 0.2);
}

.heritage-category {
    background: linear-gradient(135deg, #e7f0f7 0%, #e8f4fc 100%);
    color: #3878a8;
    border: 1px solid rgba(56, 120, 168, 0.2);
}

.heritage-region {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--theme-gray);
    margin: 10px 0;
}

.heritage-region::before {
    content: "📍";
    margin-right: 5px;
}

.view-details {
    display: block;
    text-align: center;
    color: #c13030;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.view-details:hover {
    background-color: rgba(193, 48, 48, 0.05);
    color: #9a1f17;
}

/* 底部区域 */
.heritage-footer {
    display: flex;
    justify-content: flex-end;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 35px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f4ea 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-btn {
    padding: 10px 20px;
    background: white;
    color: var(--theme-text-dark);
    border: 2px solid #e0d5c5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.page-btn:hover:not(:disabled) {
    background: var(--gradient-red);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 137, 0.3);
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e5e5e5;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-weight: 600;
    color: var(--theme-text-dark);
    font-size: 1rem;
    padding: 0 15px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #e0d5c5;
}

#page-input {
    width: 60px;
    padding: 10px;
    text-align: center;
    border: 2px solid #e0d5c5;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

#page-input:focus {
    outline: none;
    border-color: var(--theme-primary);
}

/* 登录提示框样式 */
.login-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-prompt-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.login-prompt-content h3 {
    margin-top: 0;
    color: #1d4e89;
    font-size: 18px;
}

.login-prompt-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.login-btn {
    padding: 8px 16px;
    background-color: #1d4e89;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.login-btn:hover {
    background-color: #133863;
}

.cancel-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 50px 0;
    color: var(--theme-gray);
    font-style: italic;
    grid-column: 1 / -1;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 50px 0;
    color: var(--theme-gray);
    font-style: italic;
    grid-column: 1 / -1;
}

/* 列表消息提示 */
.list-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f4ea 0%, #fff 100%);
    border-radius: 8px;
    color: var(--theme-gray);
    font-size: 0.95rem;
    border: 1px solid rgba(212, 176, 84, 0.2);
}

/* Toast消息样式 */
.toast-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .filter-section {
        flex-wrap: nowrap;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 140px;
    }
    
    .search-box {
        min-width: 200px;
    }
}

@media (max-width: 1200px) {
    .heritage-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-section {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-group {
        min-width: 150px;
    }
    
    .filter-group label {
        min-width: 70px;
        font-size: 0.95rem;
    }
    
    .filter-group select {
        font-size: 0.95rem;
        padding: 7px 10px;
    }
    
    .search-box {
        min-width: 200px;
    }
    
    .search-box input {
        font-size: 0.95rem;
        padding: 7px 12px;
    }
    
    .search-box button {
        font-size: 0.95rem;
        padding: 7px 18px;
    }
}

@media (max-width: 1024px) {
    .filter-section {
        justify-content: center;
    }
    
    .filter-group {
        min-width: 200px;
        flex: 1;
    }
    
    .search-box {
        flex: 1.5;
        min-width: 250px;
    }
}

@media (max-width: 900px) {
    .heritage-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
        flex: none;
        justify-content: space-between;
    }
    
    .filter-group select {
        flex: 1;
        min-width: 0;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-group label {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .heritage-list {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .filter-group {
        margin-bottom: 10px;
    }
    
    .search-box {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .filter-section {
        gap: 8px;
        padding: 8px;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group select {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .search-box button {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
}

/* 
 
 
 


