.diary-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eeef 100%);
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
}

.page-header {
    background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.15);
}

.diary-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.12);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 25px;
    overflow: hidden;
}

.diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.2);
}

.diary-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .diary-card .row.g-0 {
        flex-direction: column;
    }
    .diary-card .col-md-4,
    .diary-card .col-md-8 {
        width: 100%;
    }
    .diary-card .card-img-wrap {
        height: 150px;
    }
}

.diary-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.diary-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.diary-card .card-body {
    padding: 20px 25px;
}

.diary-card .card-title {
    color: #5a5a5a;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.diary-card .card-text {
    color: #888;
    line-height: 1.8;
}

.mood-badge {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 8px;
}

.weather-badge {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 8px;
}

.public-badge {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.private-badge {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.diary-date {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.btn-warm {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-warm:hover {
    background: linear-gradient(135deg, #ff8085 0%, #fdb8cf 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-warm {
    border: 2px solid #ff9a9e;
    color: #ff9a9e;
    background: transparent;
    padding: 8px 18px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.btn-outline-warm:hover {
    background: #ff9a9e;
    color: white;
}

.btn-outline-danger-custom {
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    background: transparent;
    padding: 8px 18px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.btn-outline-danger-custom:hover {
    background: #ff6b6b;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.15);
}

.empty-state .icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: #888;
    margin-bottom: 15px;
}

.empty-state p {
    color: #aaa;
}

.pagination-custom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-custom .page-item .page-link {
    color: #ff9a9e;
    border: none;
    margin: 0 3px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(255, 154, 158, 0.15);
    transition: all 0.3s ease;
}

.pagination-custom .page-item .page-link:hover {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.pagination-custom .page-item.disabled .page-link {
    background: #f5f5f5;
    color: #ccc;
    box-shadow: none;
}

.page-info {
    text-align: center;
    color: #888;
    margin-top: 15px;
    font-size: 0.9rem;
}

.page-size-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.page-size-selector label {
    color: #888;
    font-size: 0.9rem;
}

.page-size-selector select {
    border: 2px solid #ff9a9e;
    border-radius: 15px;
    padding: 5px 15px;
    color: #5a5a5a;
    background: white;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-size-selector select:focus {
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.2);
}

.page-ellipsis {
    padding: 0 8px;
    color: #888;
}

.search-box {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 15px rgba(255, 154, 158, 0.1);
}

.search-box .form-label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.search-box .form-control {
    border: 2px solid #ff9a9e;
    border-radius: 12px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.2);
    border-color: #ff8085;
}

.search-box .btn-search {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: none;
    color: white;
    padding: 6px 18px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.search-box .btn-search:hover {
    background: linear-gradient(135deg, #ff8085 0%, #fdb8cf 100%);
    color: white;
    transform: translateY(-2px);
}

.search-box .btn-clear {
    background: #f5f5f5;
    border: none;
    color: #888;
    padding: 6px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.search-box .btn-clear:hover {
    background: #e0e0e0;
    color: #666;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .diary-container {
        padding: 10px;
        border-radius: 10px;
    }

    .page-header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .page-header h2 {
        font-size: 1.25rem !important;
    }

    .page-header p {
        font-size: 0.85rem !important;
    }

    .page-header .btn-warm {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .search-box {
        padding: 15px;
    }

    .search-box .form-label {
        font-size: 0.85rem;
    }

    .search-box .btn-search,
    .search-box .btn-clear {
        width: auto;
    }

    .diary-card {
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .diary-card .card-img-wrap {
        height: 150px;
    }

    .diary-card .card-body {
        padding: 12px 15px;
    }

    .diary-card .card-title {
        font-size: 1rem;
    }

    .diary-card .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .diary-card .diary-date {
        font-size: 0.75rem;
    }

    .diary-card .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .diary-card .action-buttons .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .pagination-custom {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-custom .page-item .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .page-size-selector {
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-size-selector label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .page-info {
        font-size: 0.8rem;
    }

    .mood-badge,
    .weather-badge,
    .public-badge,
    .private-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}
