﻿

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.browse-main {
    flex: 1;
    padding: 40px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #433E38;
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', serif;
}

.page-header p {
    color: #8B7D6B;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(139, 125, 107, 0.15);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #A67C52;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #8B7D6B;
}

.filter-section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #A67C52;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #433E38;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #A67C52;
}

/* 鍦板潃绛涢€夋牱寮?*/
.address-filter-group {
    flex: 1 1 100%;
    min-width: 100%;
    margin-top: 10px;
}

.address-selects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.address-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: white;
}

.address-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.address-select:focus {
    outline: none;
    border-color: #A67C52;
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply {
    background-color: #A67C52;
    color: white;
}

.btn-apply:hover {
    background-color: #8B7D6B;
}

.btn-reset {
    background-color: #F9F7F4;
    color: #555;
    border: 1px solid #ddd;
}

.btn-reset:hover {
    background-color: #e9ecef;
}

.memorials-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.memorial-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    min-height: 220px;
}

.memorial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.memorial-photo {
    width: 220px;
    min-width: 220px;
    background-color: #e8f4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A67C52;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #eee;
}

.memorial-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.memorial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.memorial-header {
    margin-bottom: 15px;
}

.memorial-name {
    font-size: 1.5rem;
    color: #433E38;
    margin-bottom: 8px;
    line-height: 1.3;
}

.memorial-dates {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 5px;
}

.memorial-category {
    display: inline-block;
    background-color: #e8f4fc;
    color: #A67C52;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.memorial-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.meta-left {
    display: flex;
    gap: 20px;
}

.meta-right {
    display: flex;
    gap: 15px;
}

.memorial-views,
.memorial-tributes,
.memorial-added {
    display: flex;
    align-items: center;
    gap: 6px;
}

.memorial-views i,
.memorial-tributes i,
.memorial-added i {
    color: #A67C52;
    font-size: 0.9rem;
}

.visit-btn,
a.visit-btn {
    background-color: #A67C52;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.visit-btn:hover {
    background-color: #8B7D6B;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn,
.page-number {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover,
.page-number:hover {
    border-color: #A67C52;
    color: #A67C52;
}

.page-number.active {
    background-color: #A67C52;
    color: white;
    border-color: #A67C52;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    border-color: #ddd;
    color: #555;
}

.categories-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #A67C52;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-icon {
    font-size: 2rem;
    color: #A67C52;
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.1rem;
    color: #433E38;
    margin-bottom: 5px;
}

.category-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.recent-section {
    margin-top: 60px;
}

.recent-memorials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.recent-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.recent-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e8f4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A67C52;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.recent-info {
    flex-grow: 1;
}

.recent-name {
    font-size: 1.1rem;
    color: #433E38;
    margin-bottom: 5px;
}

.recent-dates {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.recent-added {
    font-size: 0.85rem;
    color: #A67C52;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    color: #aaa;
    max-width: 500px;
    margin: 0 auto 25px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stat-item {
        min-width: 100%;
    }

    .filter-options {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        min-width: 100%;
    }
    
    /* 绉诲姩绔細鍦板潃绛涢€夋敼涓轰袱鍒楀竷灞€ */
    .address-selects {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .address-select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .filter-actions {
        width: 100%;
        justify-content: center;
    }

    .memorial-item {
        flex-direction: column;
        min-height: auto;
    }

    .memorial-photo {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .memorial-content {
        padding: 20px;
    }

    .memorial-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .meta-left,
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .recent-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .filter-section {
        padding: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .memorial-header {
        text-align: center;
    }

    .memorial-bio {
        text-align: left;
    }
}


